From: <var...@us...> - 2020-03-23 13:08:20
|
Revision: 10159 http://sourceforge.net/p/phpwiki/code/10159 Author: vargenau Date: 2020-03-23 13:08:19 +0000 (Mon, 23 Mar 2020) Log Message: ----------- fix returns for dba session API -- patches by Christof Meerwald Modified Paths: -------------- trunk/lib/DbSession/dba.php Modified: trunk/lib/DbSession/dba.php =================================================================== --- trunk/lib/DbSession/dba.php 2020-03-23 13:06:02 UTC (rev 10158) +++ trunk/lib/DbSession/dba.php 2020-03-23 13:08:19 UTC (rev 10159) @@ -97,6 +97,7 @@ { $dbh = $this->_connect(); $dbh->open(); + return true; } /** @@ -110,6 +111,7 @@ public function close() { $this->_disconnect(); + return true; } /** @@ -123,7 +125,7 @@ $dbh = $this->_connect(); $result = $dbh->get($id); if (!$result) { - return false; + return ''; } list(, , $packed) = explode('|', $result, 3); $this->_disconnect(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |