Skip to content

Commit e894214

Browse files
committed
fix bug! ksort return bool
1 parent d3575e2 commit e894214

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ActiveRecordHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ private function getCacheComponent()
128128
private static function getCacheKeyById($id)
129129
{
130130
if (is_array($id)) {
131-
return implode('|', ksort($id));
131+
ksort($id);
132+
return implode('|', $id);
132133
}
133134

134135
return (string)$id;

0 commit comments

Comments
 (0)