Unit tests should run with E_ALL so we can detect all errors. Fix dozens of errors that popped up after enabling all errors.

This commit is contained in:
WineHQ
2006-11-25 17:24:44 +00:00
parent e1333dd7fc
commit b858e2ba53
21 changed files with 193 additions and 131 deletions

View File

@@ -6,7 +6,7 @@
*/
/* the number of days a session cookie is flaged to last */
define(SESSION_DAYS_TO_EXPIRE, 2);
define("SESSION_DAYS_TO_EXPIRE", 2);
class session
{
@@ -73,7 +73,10 @@ class session
$result = query_parameters("SELECT data FROM session_list WHERE session_id = '?'", $key);
if (!$result) { return null; }
$oRow = mysql_fetch_object($result);
return $oRow->data;
if($oRow)
return $oRow->data;
else
return NULL;
}
// write session to DB