[Openfirst-cvscommit] base index.php,1.4,1.5
Brought to you by:
xtimg
From: <xt...@us...> - 2003-11-23 23:15:12
|
Update of /cvsroot/openfirst/base In directory sc8-pr-cvs1:/tmp/cvs-serv17835 Modified Files: index.php Log Message: Ensure that modules have their mysql tables, etc. properly set up before attempting to use data from these tables. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 23 Oct 2003 22:37:36 -0000 1.4 --- index.php 23 Nov 2003 23:15:09 -0000 1.5 *************** *** 56,60 **** } ! if (is_readable("guestbook/")) { $qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); if(ofirst_dbnum_rows($qu)!=0){ --- 56,60 ---- } ! if (is_readable("guestbook/") && ofirst_dbnum_rows(ofirst_dbquery("SELECT * FROM ofirst_config WHERE modulename='guestbook' AND active='1';")) > 0) { $qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); if(ofirst_dbnum_rows($qu)!=0){ *************** *** 66,70 **** } } ! if (is_readable("awards/")) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); if(ofirst_dbnum_rows($qu)!=0){ --- 66,70 ---- } } ! if (is_readable("awards/") && ofirst_dbnum_rows(ofirst_dbquery("SELECT * FROM ofirst_config WHERE modulename='awards' AND active='1';")) > 0) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); if(ofirst_dbnum_rows($qu)!=0){ |