Fixed "$this was not undefined" error.

This commit is contained in:
Alex Tselegidis 2015-10-18 19:57:22 +02:00
parent 416428ee4e
commit 1075855e04
1 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,6 @@
* @return bool Returns whether E!A is installed or not. * @return bool Returns whether E!A is installed or not.
*/ */
function is_ea_installed() { function is_ea_installed() {
return $this->db->table_exists('ea_users'); $ci =& get_instance();
return $ci->db->table_exists('ea_users');
} }