// Fixed strict standard warning #PSCFV-3582

This commit is contained in:
dMetzger
2012-08-10 12:29:03 +00:00
parent 8d10b6e7b4
commit b8b151fbbd

View File

@@ -1284,8 +1284,11 @@ abstract class ObjectModelCore
* @param bool $has_active_column true if the table has an active column
* @return bool
*/
public static function isCurrentlyUsed($table, $has_active_column = false)
public static function isCurrentlyUsed($table = null, $has_active_column = false)
{
if ($table === null)
$table = self::$definition['table'];
$query = new DbQuery();
$query->select('`id_'.pSQL($table).'`');
$query->from($table);