mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 19:20:52 -04:00
Convert __toString() to use (string) cast instead.
This commit is contained in:
@@ -84,7 +84,7 @@ class task_Core {
|
||||
}
|
||||
$task->save();
|
||||
} catch (Exception $e) {
|
||||
Kohana_Log::add("error", $e->__toString());
|
||||
Kohana_Log::add("error", (string)$e);
|
||||
|
||||
// Ugh. I hate to use instanceof, But this beats catching the exception separately since
|
||||
// we mostly want to treat it the same way as all other exceptions
|
||||
@@ -92,7 +92,7 @@ class task_Core {
|
||||
Kohana_Log::add("error", "Validation errors: " . print_r($e->validation->errors(), 1));
|
||||
}
|
||||
|
||||
$task->log($e->__toString());
|
||||
$task->log((string)$e);
|
||||
$task->state = "error";
|
||||
$task->done = true;
|
||||
$task->status = substr($e->getMessage(), 0, 255);
|
||||
|
||||
Reference in New Issue
Block a user