projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5b26271
)
Yet another 'empty version' fixed
author
Roland Häder
<roland@mxchange.org>
Thu, 29 Oct 2009 20:48:56 +0000
(20:48 +0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 29 Oct 2009 20:48:56 +0000
(20:48 +0000)
inc/libs/admins_functions.php
patch
|
blob
|
history
diff --git
a/inc/libs/admins_functions.php
b/inc/libs/admins_functions.php
index 73362ec6db4c53bdca4cf6b32d058b8036268e1e..dde26cc2bf322025e191764978f1f4c67c5ea786 100644
(file)
--- a/
inc/libs/admins_functions.php
+++ b/
inc/libs/admins_functions.php
@@
-70,7
+70,7
@@
function adminsCheckAdminAcl ($action, $what) {
// Shall I test for a main or sub menu? (action or what?)
$acl_mode = 'failed';
// Shall I test for a main or sub menu? (action or what?)
$acl_mode = 'failed';
- if ((
getExtensionVersion('cache') >= '0.1.2'
) && (isset($GLOBALS['cache_array']['admin_acls'])) && (count($GLOBALS['cache_array']['admin_acls']) > 0)) {
+ if ((
isExtensionInstalledAndNewer('cache', '0.1.2')
) && (isset($GLOBALS['cache_array']['admin_acls'])) && (count($GLOBALS['cache_array']['admin_acls']) > 0)) {
// Lookup in cache
if ((!empty($action)) && (isset($GLOBALS['cache_array']['admin_acls']['action_menu'][$adminId])) & ($GLOBALS['cache_array']['admin_acls']['action_menu'][$adminId] == $action)) {
// Main menu line found
// Lookup in cache
if ((!empty($action)) && (isset($GLOBALS['cache_array']['admin_acls']['action_menu'][$adminId])) & ($GLOBALS['cache_array']['admin_acls']['action_menu'][$adminId] == $action)) {
// Main menu line found