adding UI tests for database configuration, fixed an issue with comment
table creation
This commit is contained in:
@@ -22,7 +22,7 @@ abstract class zerobin_abstract
|
||||
*
|
||||
* @access protected
|
||||
* @static
|
||||
* @var zerobin
|
||||
* @var zerobin_abstract
|
||||
*/
|
||||
protected static $_instance = null;
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ class zerobin_db extends zerobin_abstract
|
||||
}
|
||||
|
||||
// create comment table if needed
|
||||
if (!array_key_exists(self::$_prefix . 'comment', $tables))
|
||||
if (!in_array(self::$_prefix . 'comment', $tables))
|
||||
{
|
||||
self::$_db->exec(
|
||||
'CREATE TABLE ' . self::$_prefix . 'comment ( ' .
|
||||
@@ -182,7 +182,7 @@ class zerobin_db extends zerobin_abstract
|
||||
}
|
||||
}
|
||||
|
||||
return parent::$_instance;
|
||||
return self::$_instance;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user