|
From: MW <jo...@us...> - 2008-02-11 11:27:32
|
Update of /cvsroot/mxbb/core/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10592/admin Modified Files: admin_mx_chkobjs.php Log Message: code styling: missing braces Index: admin_mx_chkobjs.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/admin_mx_chkobjs.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** admin_mx_chkobjs.php 11 Feb 2008 11:13:16 -0000 1.27 --- admin_mx_chkobjs.php 11 Feb 2008 11:27:26 -0000 1.28 *************** *** 316,320 **** --- 316,322 ---- $sql = "SELECT * FROM ".$tbname." WHERE ".$where; if( !($row = chkobjs_dbFetchRow($sql)) ) + { return false; + } return $row[$field]; } *************** *** 329,336 **** { global $db; ! if( !($result = $db->sql_query($sql)) ) return false; ! if( !($row = $db->sql_fetchrow($result)) ) return false; return $row; } --- 331,343 ---- { global $db; ! if (!($result = $db->sql_query($sql))) ! { return false; ! } ! ! if (!($row = $db->sql_fetchrow($result))) ! { return false; + } return $row; } *************** *** 345,350 **** { global $db; ! if( !($result = $db->sql_query($sql)) ) return false; return $result; } --- 352,359 ---- { global $db; ! if (!($result = $db->sql_query($sql))) ! { return false; + } return $result; } |