Commit 0384f319 authored by Alex Ne's avatar Alex Ne

Еще одна беда

parent 52dc50c4
...@@ -142,6 +142,7 @@ class EItem extends \Exception { ...@@ -142,6 +142,7 @@ class EItem extends \Exception {
* @return mixed * @return mixed
*/ */
private function calcHash() { private function calcHash() {
if (is_array($this->Trace())) {
$re_trace = array_map(function ($item) { $re_trace = array_map(function ($item) {
if (isset($item["file"])) { if (isset($item["file"])) {
return [$item["file"], $item["line"]]; return [$item["file"], $item["line"]];
...@@ -149,6 +150,10 @@ class EItem extends \Exception { ...@@ -149,6 +150,10 @@ class EItem extends \Exception {
return ["nofile", "noline"]; return ["nofile", "noline"];
} }
}, $this->Trace()); }, $this->Trace());
} else {
$re_trace = [];
}
return md5(serialize([ return md5(serialize([
$this->object_name, $this->object_name,
$this->host, $this->host,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment