/** * Check if a table is filled with data * * @param string $tableName Table name * * @return boolean true, if table is empty, otherwise false */ public static function checkOnEmptyTable($tableName) { if (self::$instance->numRows(self::$instance->query('SELECT * FROM ' . SQLPREFIX . $tableName)) < 1) { return true; } else { return false; } }
/** * Check if a table is filled with data * * @param string $tableName Table name * * @return boolean true, if table is empty, otherwise false */ public static function checkOnEmptyTable($tableName) { if (self::$instance->numRows(self::$instance->query('SELECT * FROM ' . PMF_Db::getTablePrefix() . $tableName)) < 1) { return true; } else { return false; } }