Update of /cvsroot/phpwsbb/phpwsbb/class
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23457/class
Modified Files:
Manager.php
Log Message:
Insert query was breaking because of null values. Specified default values for monitordefault & suspendmonitors.
Index: Manager.php
===================================================================
RCS file: /cvsroot/phpwsbb/phpwsbb/class/Manager.php,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** Manager.php 21 Sep 2004 03:13:54 -0000 1.49
--- Manager.php 23 Sep 2004 07:33:27 -0000 1.50
***************
*** 1340,1347 ****
// If the user has uservars set for this module...
$monitordefault = $_SESSION['OBJ_user']->getUserVar('monitordefault', NULL, 'phpwsbb');
! if ($monitordefault!==NULL) {
// transfer the values to the table
$result['monitordefault'] = $monitordefault;
$result['suspendmonitors'] = $_SESSION['OBJ_user']->getUserVar('suspendmonitors', NULL, 'phpwsbb');
}
--- 1340,1351 ----
// If the user has uservars set for this module...
$monitordefault = $_SESSION['OBJ_user']->getUserVar('monitordefault', NULL, 'phpwsbb');
! if ($monitordefault!=NULL) {
// transfer the values to the table
$result['monitordefault'] = $monitordefault;
$result['suspendmonitors'] = $_SESSION['OBJ_user']->getUserVar('suspendmonitors', NULL, 'phpwsbb');
+ }
+ else {
+ $result['monitordefault'] = '1';
+ $result['suspendmonitors'] = '0';
}
|