aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2015-03-12 19:46:33 +0000
committerrvelices <rv-github@modusoptimus.com>2015-03-12 19:46:33 +0000
commitc7ea93cba3dcd34391dd8b2ed0293797ea13a40e (patch)
tree14088e4ddb257accf88eb1139e30ac2b5e5ded03 /include/functions_category.inc.php
parent05d8f5466b47198837a9f31efefdc63bdfda7234 (diff)
use query2array + removed unused declaration
git-svn-id: http://piwigo.org/svn/trunk@31030 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_category.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 826ff9292..15ab84c25 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -335,7 +335,7 @@ SELECT DISTINCT(id)
}
$query.= '
;';
- return array_from_query($query, 'id');
+ return query2array($query, null, 'id');
}
/**
@@ -541,7 +541,7 @@ FROM '.CATEGORIES_TABLE.' as c
// Piwigo before 2.5.3 may have generated inconsistent permissions, ie
// private album A1/A2 permitted to user U1 but private album A1 not
// permitted to U1.
- //
+ //
// TODO 2.7: add an upgrade script to repair permissions and remove this
// test
if ( !isset($cats[ $cat['id_uppercat'] ]))