Skip to content

Commit 9d667e0

Browse files
committed
'array_values(...)' misused
1 parent b7bc82f commit 9d667e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

class/Common/SysUtility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public static function cloneRecord($tableName, $id_field, $id)
227227
// set the auto-incremented id's value to blank.
228228
unset($tempTable[$id_field]);
229229
// insert cloned copy of the original record
230-
$sql = "INSERT INTO $table (" . \implode(', ', \array_keys($tempTable)) . ") VALUES ('" . \implode("', '", \array_values($tempTable)) . "')";
230+
$sql = "INSERT INTO $table (" . \implode(', ', \array_keys($tempTable)) . ") VALUES ('" . \implode("', '", $tempTable) . "')";
231231
$result = $GLOBALS['xoopsDB']->queryF($sql);
232232
if (!$result) {
233233
exit($GLOBALS['xoopsDB']->error());

0 commit comments

Comments
 (0)