Made method static
This commit is contained in:
parent
9dfb762bbe
commit
8a2703c50d
2 changed files with 2 additions and 3 deletions
|
@ -320,7 +320,7 @@ class LibraryController extends Zend_Controller_Action
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
//could throw a scheduled in future exception.
|
//could throw a scheduled in future exception.
|
||||||
$message = "Could not delete some scheduled files.";
|
$message = "Could not delete some scheduled files.";
|
||||||
Logging::info($e);
|
Logging::debug($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,8 @@ class Application_Model_Schedule
|
||||||
*
|
*
|
||||||
* @param string $p_fileId
|
* @param string $p_fileId
|
||||||
*/
|
*/
|
||||||
public function IsFileScheduledInTheFuture($p_fileId)
|
public static function IsFileScheduledInTheFuture($p_fileId)
|
||||||
{
|
{
|
||||||
global $CC_CONFIG;
|
|
||||||
$sql = <<<SQL
|
$sql = <<<SQL
|
||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
FROM cc_schedule
|
FROM cc_schedule
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue