Update of /cvsroot/phpmp/phpMP
In directory usw-pr-cvs1:/tmp/cvs-serv3388
Modified Files:
modules.php
Log Message:
Updated more DBA. Added Extremely Basic News module.
Index: modules.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/modules.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** modules.php 11 Apr 2002 03:26:02 -0000 1.3
--- modules.php 11 Apr 2002 05:40:15 -0000 1.4
***************
*** 55,60 ****
$query = $DBA->query("SELECT * FROM " . $MPCONF['DB']['table_prefix'] . "modules WHERE unixname='" . $this->modulename . "'");
! if(@mysql_num_rows($query) == 1) {
! $MPCONF['MOD'] = @mysql_fetch_array($query);
}
if($MPCONF['MOD']['active'] != 1) {
--- 55,61 ----
$query = $DBA->query("SELECT * FROM " . $MPCONF['DB']['table_prefix'] . "modules WHERE unixname='" . $this->modulename . "'");
! $num_rows = $DBA->num_rows($query);
! if($num_rows > 0) {
! $MPCONF['MOD'] = $DBA->fetch_array($query);
}
if($MPCONF['MOD']['active'] != 1) {
|