Permalink
Browse files

Wed May 23 11:40:33 MDT 2012 - A few minor changes to eliminiate PHP …

…E_WARNING messages due to undefined variables
  • Loading branch information...
1 parent ae8c267 commit d113c57dd758636fd3f170aca201fbe0623a4f32 @jas- committed May 23, 2012
Showing with 3 additions and 6 deletions.
  1. +1 −4 index.php
  2. +1 −1 models/model.libraries.php
  3. +1 −1 models/model.logging.php
View
@@ -60,10 +60,7 @@
}
/* create new instance of sessions? */
-if (!is_object($regsitry->sessions)){
- //$registry->sessions = new dbSession($settings['sessions'], $registry);
- $registry->sessions = dbSession::instance($settings['sessions'], $registry);
-}
+$registry->sessions = dbSession::instance($settings['sessions'], $registry);
/* generate or use CSRF token */
if (!isset($_SESSION[$registry->libs->_getRealIPv4()]['csrf'])) {
@@ -278,8 +278,8 @@ public function _hash($string, $salt=null)
*/
function _serialize($array)
{
+ $x = '';
if ((is_array($array)) && (count($array) > 0)) {
- $x = '';
foreach($array as $key => $value) {
$x .= $key.'='.$value.'&';
}
View
@@ -135,7 +135,7 @@ private function _create($array)
*/
private function _main()
{
- $x['guid'] = $_SESSION['csrf'];
+ $x['guid'] = $_SESSION[$this->registry->libs->_getRealIPv4()]['csrf'];
$x['adate'] = $this->_time();
$x['ip'] = $this->_ip();
$x['hostname'] = $this->_host();

0 comments on commit d113c57

Please sign in to comment.