Changeset 190


Ignore:
Timestamp:
Jul 1, 2006 1:04:21 AM (18 years ago)
Author:
scdev
Message:

Q - Fixed a couple bugs exposed by php 4

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Prefs.inc.php

    r174 r190  
    186186        if (!isset($_SESSION['_prefs'][$this->_ns]['defaults'][$key]) || $_SESSION['_prefs'][$this->_ns]['defaults'][$key] != $val || isset($_SESSION['_prefs'][$this->_ns]['persistent'][$key])) {
    187187            $_SESSION['_prefs'][$this->_ns]['persistent'][$key] = $val;           
    188             $app->logMsg(sprintf('Setting preference %s => %s', $key, $val), LOG_DEBUG, __FILE__, __LINE__);
     188            $app->logMsg(sprintf('Setting preference %s => %s', $key, getDump($val)), LOG_DEBUG, __FILE__, __LINE__);
    189189        } else {
    190190            $app->logMsg(sprintf('not setting %s => %s', $key, $val), LOG_DEBUG, __FILE__, __LINE__);
  • trunk/lib/Utilities.inc.php

    r189 r190  
    311311
    312312    $final_time = $seconds;
     313    $last_unit = sizeof($units) - 1;
    313314    foreach ($units as $k => $v) {
    314315        if ($max_unit != $k && $seconds >= $v[0]) {
Note: See TracChangeset for help on using the changeset viewer.