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

Еще одна беда

parent 52dc50c4
...@@ -142,13 +142,18 @@ class EItem extends \Exception { ...@@ -142,13 +142,18 @@ class EItem extends \Exception {
* @return mixed * @return mixed
*/ */
private function calcHash() { private function calcHash() {
$re_trace = array_map(function ($item) { if (is_array($this->Trace())) {
if (isset($item["file"])) { $re_trace = array_map(function ($item) {
return [$item["file"], $item["line"]]; if (isset($item["file"])) {
} else { return [$item["file"], $item["line"]];
return ["nofile", "noline"]; } else {
} 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