Code Duplication    Length = 4-4 lines in 2 locations

htdocs/class/database/mysqldatabaseproxy.php 1 location

@@ 51-54 (lines=4) @@
48
    {
49
        $this->deprecated();
50
        $sql = ltrim($sql);
51
        if (!$this->allowWebChanges && strtolower(substr($sql, 0, 6)) !== 'select') {
52
            //trigger_error('Database updates are not allowed during processing of a GET request', E_USER_WARNING);
53
            return false;
54
        }
55
        return $this->queryF($sql, $limit, $start);
56
    }
57
}

htdocs/xoops_lib/Xoops/Core/Database/Connection.php 1 location

@@ 323-326 (lines=4) @@
320
        $events = \Xoops::getInstance()->events();
321
        if (!$this->safe && !$this->force) {
322
            $sql = ltrim(func_get_arg(0));
323
            if (!$this->safe && strtolower(substr($sql, 0, 6)) !== 'select') {
324
                // $events->triggerEvent('core.database.query.failure', (array('Not safe:')));
325
                return null;
326
            }
327
        }
328
        $this->force = false; // resets $force back to false
329
        $events->triggerEvent('core.database.query.start');