X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fdbase_pgsql.phh;h=1647617e95518edbbc2f3966a56455ecdd09fb0e;hb=43cab39ea58529cd2442c28f4157bb7efc97856f;hp=8dbdfb6e70fd7d29012e23bd7b759f75beafd68c;hpb=e469882b494df00aab18f2e38d18c5faa214c740;p=brisk.git diff --git a/web/Obj/dbase_pgsql.phh b/web/Obj/dbase_pgsql.phh index 8dbdfb6..1647617 100644 --- a/web/Obj/dbase_pgsql.phh +++ b/web/Obj/dbase_pgsql.phh @@ -55,7 +55,7 @@ class DBConn } $out = new DBConn(); - + return $out; } function db() @@ -84,8 +84,9 @@ class BriskDB log_main("BriskDB create:start"); do { - if (($dbconn = DBConn::create()) == FALSE) + if (($dbconn = DBConn::create()) == FALSE) { break; + } $ret = new BriskDB($dbconn); } while (0); @@ -150,7 +151,7 @@ class BriskDB log_main("login[".$user_obj->code."]: ".$user_obj->login); /* if it exists check for a valid challenge */ - if (($a_sem = Challenges::lock_data()) != FALSE) { + if (($a_sem = Challenges::lock_data(TRUE)) != FALSE) { if (($chals = &Challenges::load_data()) != FALSE) { for ($e = 0 ; $e < $chals->item_n ; $e++) { log_main("challenge[".$e."]: ".$chals->item[$e]->login);