[geeklog-cvs] geeklog-1.3/plugins/staticpages functions.inc,1.43,1.44
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sat Oct 23 05:40:19 EDT 2004
Update of /var/cvs/geeklog-1.3/plugins/staticpages
In directory www:/tmp/cvs-serv2676
Modified Files:
functions.inc
Log Message:
Fixed display of number of static pages that the user has access to (in the Admin Block).
Index: functions.inc
===================================================================
RCS file: /var/cvs/geeklog-1.3/plugins/staticpages/functions.inc,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** functions.inc 5 Oct 2004 19:56:30 -0000 1.43
--- functions.inc 23 Oct 2004 09:40:17 -0000 1.44
***************
*** 325,333 ****
if (SEC_hasRights ('staticpages.edit,staticpages.delete', 'OR')) {
! $perms = SP_getPerms ('', '3');
! if (!empty ($perms)) {
! $perms = ' WHERE ' . $perms;
! }
! $result = DB_query ("SELECT count(*) AS cnt FROM {$_TABLES['staticpage']}" . $perms);
$A = DB_fetchArray ($result);
$total_pages = $A['cnt'];
--- 325,329 ----
if (SEC_hasRights ('staticpages.edit,staticpages.delete', 'OR')) {
! $result = DB_query ("SELECT count(*) AS cnt FROM {$_TABLES['staticpage']}" . COM_getPermSQL ());
$A = DB_fetchArray ($result);
$total_pages = $A['cnt'];
More information about the geeklog-cvs
mailing list