Skip to content

Commit 0c7bb49

Browse files
committed
Fixed issue chriskacerguis#117 - Undefined property $this->db
1 parent def1295 commit 0c7bb49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public function __construct()
232232
}
233233

234234
// Use whatever database is in use (isset returns false)
235-
elseif (@$this->db)
235+
elseif (property_exists($this, "db"))
236236
{
237237
$this->rest->db = $this->db;
238238
}

0 commit comments

Comments
 (0)