Commit 5542efc5 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-3966

parent 13e359c9
Loading
Loading
Loading
Loading
+1 −1
Changes for sources/banners.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -310,7 +310,7 @@ function banners_script($ret = false, $type = null, $dest = null, $b_type = null
        if ($source != '') {
            if (get_db_type() != 'xml') {
                if (!$GLOBALS['SITE_DB']->table_is_locked('banners')) {
                    $GLOBALS['SITE_DB']->query('UPDATE ' . get_table_prefix() . 'banners SET views_from=(views_from+1) WHERE ' . db_string_equal_to('name', $name), 1, null, false, true);
                    $GLOBALS['SITE_DB']->query('UPDATE ' . get_table_prefix() . 'banners SET views_from=(views_from+1) WHERE ' . db_string_equal_to('name', $source), 1, null, false, true);
                }
            }
        }