Skip to content
Snippets Groups Projects
Commit 76938a5d authored by Jared Hancock's avatar Jared Hancock
Browse files

Avoid extra db query for schema signature

parent 1deeb3aa
Branches
Tags
No related merge requests found
...@@ -192,7 +192,8 @@ class OsticketConfig extends Config { ...@@ -192,7 +192,8 @@ class OsticketConfig extends Config {
function getSchemaSignature($section=null) { function getSchemaSignature($section=null) {
if (!$section && ($v=$this->get('schema_signature'))) if ((!$section || $section == $this->section)
&& ($v=$this->get('schema_signature')))
return $v; return $v;
// 1.7 after namespaced configuration, other namespace // 1.7 after namespaced configuration, other namespace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment