adding UI tests for database configuration, fixed an issue with comment

table creation
This commit is contained in:
El RIDO
2015-10-03 15:52:37 +02:00
parent 7ec94e0db5
commit add980d36f
5 changed files with 79 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ abstract class zerobin_abstract
*
* @access protected
* @static
* @var zerobin
* @var zerobin_abstract
*/
protected static $_instance = null;

View File

@@ -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;
}
/**