Changeset 203 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Jul 25, 2006 10:03:23 PM (18 years ago)
Author:
scdev
Message:

Q - minor bugfixes in boomerang func, upload error logging, raiseMsg logging.

File:
1 edited

Legend:

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

    r202 r203  
    365365        $message = trim($message);
    366366
    367         if (!$this->running || '' == $message) {
    368             $this->logMsg(sprintf('Canceled method call %s, application not running or message is an empty string.', __FUNCTION__), LOG_NOTICE, __FILE__, __LINE__);
     367        if (!$this->running) {
     368            $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_NOTICE, __FILE__, __LINE__);
     369            return false;
     370        }
     371
     372        if ('' == trim($message)) {
     373            $this->logMsg(sprintf('Raised message is an empty string.', __FUNCTION__), LOG_NOTICE, __FILE__, __LINE__);
    369374            return false;
    370375        }
     
    877882            // If URL is not specified, use the redirect_home_url.
    878883            $url = $this->getParam('redirect_home_url');
    879             $this->logMsg(sprintf('dieBoomerangURL(%s) not found, using redirect_home_url: %s', $id, $url), LOG_DEBUG, __FILE__, __LINE__);
     884            $this->logMsg(sprintf('dieBoomerangURL(%s) using redirect_home_url: %s', $id, $url), LOG_DEBUG, __FILE__, __LINE__);
    880885        }
    881886
Note: See TracChangeset for help on using the changeset viewer.