Skip to content
Snippets Groups Projects
Commit b210e4f8 authored by JediKev's avatar JediKev
Browse files

issue: APC CLI

This addresses issue 4720 where creating tickets via CLI fails to set a
status and crashes with an "APC must be enabled" error. This adds a check to
see if the APC module is loaded before continuing.
parent eafb34d3
No related branches found
No related tags found
No related merge requests found
...@@ -3173,7 +3173,7 @@ implements RestrictedAccess, Threadable, Searchable { ...@@ -3173,7 +3173,7 @@ implements RestrictedAccess, Threadable, Searchable {
function save($refetch=false) { function save($refetch=false) {
if ($this->dirty) { if ($this->dirty) {
$this->updated = SqlFunction::NOW(); $this->updated = SqlFunction::NOW();
if (isset($this->dirty['status_id'])) if (isset($this->dirty['status_id']) && PHP_SAPI !== 'cli')
// Refetch the queue counts // Refetch the queue counts
SavedQueue::clearCounts(); SavedQueue::clearCounts();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment