[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.202,1.203
dhaun at geeklog.net
dhaun at geeklog.net
Mon Feb 24 10:40:08 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv3638
Modified Files:
lib-common.php
Log Message:
Submissions (in the Admin menu) weren't counted correctly since Blaine's fixes to mysql.class.php
Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.202
retrieving revision 1.203
diff -C2 -d -r1.202 -r1.203
*** lib-common.php 23 Feb 2003 22:28:02 -0000 1.202
--- lib-common.php 24 Feb 2003 15:40:06 -0000 1.203
***************
*** 2039,2053 ****
if( SEC_hasrights( 'story.edit' ))
{
! $num += DB_count( $_TABLES['storysubmission'], 'uid', 0 );
}
if( SEC_hasrights( 'event.edit' ))
{
! $num += DB_count ($_TABLES['eventsubmission'], 'eid', 0);
}
if( SEC_hasrights( 'link.edit' ))
{
! $num += DB_count( $_TABLES['linksubmission'], 'lid', 0 );
}
--- 2039,2053 ----
if( SEC_hasrights( 'story.edit' ))
{
! $num += DB_count( $_TABLES['storysubmission'] );
}
if( SEC_hasrights( 'event.edit' ))
{
! $num += DB_count ($_TABLES['eventsubmission'] );
}
if( SEC_hasrights( 'link.edit' ))
{
! $num += DB_count( $_TABLES['linksubmission'] );
}
More information about the geeklog-cvs
mailing list