Bug 6253 followup: explicitly check ref value for ARRAY before casting
[koha.git] / C4 / SQLHelper.pm
index 720dc99..285f7d2 100644 (file)
@@ -415,7 +415,7 @@ sub _Process_Operands{
        my @tmpkeys;
        my @localkeys;
 
-    $operand = [$operand] unless ref $operand;
+    $operand = [$operand] unless ref $operand eq 'ARRAY';
     foreach (@$operand) {
            push @tmpkeys, " $field = ? ";
            push @values, $_;