[phpwebapp-commits] CVS: web_app class.WebApp.php,1.12,1.13
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-09-09 01:01:02
|
Update of /cvsroot/phpwebapp/web_app In directory sc8-pr-cvs1:/tmp/cvs-serv17598 Modified Files: class.WebApp.php Log Message: Index: class.WebApp.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/class.WebApp.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** class.WebApp.php 22 Aug 2003 15:54:43 -0000 1.12 --- class.WebApp.php 8 Sep 2003 13:18:24 -0000 1.13 *************** *** 484,489 **** * @see execQuery(), openRS() */ ! function execDBCmd($cmd_id, $params =array()) { global $webPage, $tplVars; --- 484,490 ---- * @see execQuery(), openRS() */ ! function execDBCmd($cmd_id, $params =UNDEFINED, $conn =UNDEFINED) { + if ($params==UNDEFINED) $params = array(); global $webPage, $tplVars; *************** *** 496,500 **** return false; } ! $result = $rs->Open(); $tplVars->popScope(); --- 497,501 ---- return false; } ! $result = $rs->Open($conn); $tplVars->popScope(); *************** *** 508,513 **** * @see execDBCmd(), execQuery() */ ! function openRS($rs_id, $params =array()) { global $webPage, $tplVars; --- 509,515 ---- * @see execDBCmd(), execQuery() */ ! function openRS($rs_id, $params =UNDEFINED, $conn =UNDEFINED) { + if ($params==UNDEFINED) $params = array(); global $webPage, $tplVars; *************** *** 517,521 **** $tplVars->addVars($params); $rs = &$webPage->rs_collection[$rs_id]; ! $rs->Open(); $tplVars->popScope(); return $rs; --- 519,523 ---- $tplVars->addVars($params); $rs = &$webPage->rs_collection[$rs_id]; ! $rs->Open($conn); $tplVars->popScope(); return $rs; |