Skip to content

Commit 46c11da

Browse files
committed
Unqualified function/constant reference
1 parent 08a35d7 commit 46c11da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

class/Common/SysUtility.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,15 @@ public static function cloneRecord($tableName, $id_field, $id)
220220
$tempTable = $GLOBALS['xoopsDB']->fetchArray($result, \MYSQLI_ASSOC);
221221
}
222222
if (!$tempTable) {
223-
trigger_error($GLOBALS['xoopsDB']->error());
223+
\trigger_error($GLOBALS['xoopsDB']->error());
224224
}
225225
// set the auto-incremented id's value to blank.
226226
unset($tempTable[$id_field]);
227227
// insert cloned copy of the original record
228228
$sql = "INSERT INTO $table (" . \implode(', ', \array_keys($tempTable)) . ") VALUES ('" . \implode("', '", \array_values($tempTable)) . "')";
229229
$result = $GLOBALS['xoopsDB']->queryF($sql);
230230
if (!$result) {
231-
trigger_error($GLOBALS['xoopsDB']->error());
231+
\trigger_error($GLOBALS['xoopsDB']->error());
232232
}
233233
// Return the new id
234234
$new_id = $GLOBALS['xoopsDB']->getInsertId();

0 commit comments

Comments
 (0)