Skip to content
Snippets Groups Projects
Commit 10b42e5a authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #658 from greezybacon/issue/extra-config-query


Avoid extra db query for schema signature

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 21a30356 76938a5d
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,8 @@ class OsticketConfig extends Config {
function getSchemaSignature($section=null) {
if (!$section && ($v=$this->get('schema_signature')))
if ((!$section || $section == $this->section)
&& ($v=$this->get('schema_signature')))
return $v;
// 1.7 after namespaced configuration, other namespace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment