Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't check Symphony::Engine(), but look for Administration class ins…

…tead
  • Loading branch information...
commit 49bfbde3285c724a7686cfbe902398aca1353f89 1 parent e8b9b45
@nickdunn nickdunn authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/class.logquery.php
View
6 lib/class.logquery.php
@@ -5,10 +5,12 @@ class LogQuery {
public static $meta_written = FALSE;
static function log($query) {
+ // prevent execution on the frontend
+ if(!class_exists('Administration')) return;
+ //if(!Symphony::Engine() instanceOf Administration) return;
- if(!Symphony::Engine() instanceOf Administration) return;
if(Symphony::Configuration()->get('enabled', 'db_sync') == 'no') return;
-
+
$tbl_prefix = Symphony::Configuration()->get('tbl_prefix', 'database');
/* FILTERS */
Please sign in to comment.
Something went wrong with that request. Please try again.