// Fixed strict standard warning #PSCFV-3582

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16793 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-10 12:29:03 +00:00
parent 7ac72c91bd
commit 00045a755b
+4 -1
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);