diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-20 20:47:47 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-20 20:47:47 -0700 |
commit | 1a96ce145cfa529708852a46d4cab3c0d4d1b37e (patch) | |
tree | 89ac3f1999c3de2ef6a411c0a3509234248e4d52 /modules/gallery/helpers/task.php | |
parent | 3aea4dd118208d6d7859ebf1d32249a8644b655b (diff) |
Don't let the task status message exceed the size of the status column when there's an error.
Diffstat (limited to 'modules/gallery/helpers/task.php')
-rw-r--r-- | modules/gallery/helpers/task.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/task.php b/modules/gallery/helpers/task.php index 6a9f63c2..352fe522 100644 --- a/modules/gallery/helpers/task.php +++ b/modules/gallery/helpers/task.php @@ -87,7 +87,7 @@ class task_Core { $task->log($e->__toString()); $task->state = "error"; $task->done = true; - $task->status = $e->getMessage(); + $task->status = substr($e->getMessage(), 0, 255); $task->save(); } |