From: <var...@us...> - 2014-07-17 09:33:29
|
Revision: 8971 http://sourceforge.net/p/phpwiki/code/8971 Author: vargenau Date: 2014-07-17 09:33:21 +0000 (Thu, 17 Jul 2014) Log Message: ----------- Add braces Modified Paths: -------------- trunk/lib/DbSession/PDO.php Modified: trunk/lib/DbSession/PDO.php =================================================================== --- trunk/lib/DbSession/PDO.php 2014-07-17 09:11:09 UTC (rev 8970) +++ trunk/lib/DbSession/PDO.php 2014-07-17 09:33:21 UTC (rev 8971) @@ -100,17 +100,23 @@ $table = $this->_table; $sth = $dbh->prepare("SELECT sess_data FROM $table WHERE sess_id=?"); $sth->bindParam(1, $id, PDO::PARAM_STR, 32); - if ($sth->execute()) $res = $sth->fetchColumn(); - else $res = ''; + if ($sth->execute()) { + $res = $sth->fetchColumn(); + } else { + $res = ''; + } $this->_disconnect(); - if (!empty($res) and isa($dbh, 'ADODB_postgres64')) + if (!empty($res) and isa($dbh, 'ADODB_postgres64')) { $res = base64_decode($res); + } if (strlen($res) > 4000) { trigger_error("Overlarge session data! " . strlen($res) . " gt. 4000", E_USER_WARNING); $res = preg_replace('/s:6:"_cache";O:12:"WikiDB_cache".+}$/', "", $res); $res = preg_replace('/s:12:"_cached_html";s:.+",s:4:"hits"/', 's:4:"hits"', $res); - if (strlen($res) > 4000) $res = ''; + if (strlen($res) > 4000) { + $res = ''; + } } return $res; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |