Simplify get_name

This commit is contained in:
ruan 2016-10-04 01:46:19 +02:00
parent 5ccda17ad9
commit 25b147de9a
No known key found for this signature in database
GPG Key ID: 062534EE618F498C

View File

@ -231,10 +231,9 @@ class Page {
$result = $name; $result = $name;
} }
$stmt->closeCursor(); $stmt->closeCursor();
if ($result !== null) return $result;
$this->uuid_name_cache[$uuid] = null; $this->uuid_name_cache[$uuid] = $result;
return null; return $result;
} }
/** /**