Skip to content

Commit f8d57bd

Browse files
author
Phil Sturgeon
committed
Merge pull request chriskacerguis#208 from megadix/fix_issue_117
Fixed issue chriskacerguis#117 - Undefined property $this->db
2 parents 84653f5 + 0c7bb49 commit f8d57bd

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
@@ -237,7 +237,7 @@ public function __construct()
237237
}
238238

239239
// Use whatever database is in use (isset returns false)
240-
elseif (@$this->db)
240+
elseif (property_exists($this, "db"))
241241
{
242242
$this->rest->db = $this->db;
243243
}

0 commit comments

Comments
 (0)