diff --git a/lib/zin/wg/picker/v1.php b/lib/zin/wg/picker/v1.php index 11af64ed8f..057ae88ac8 100644 --- a/lib/zin/wg/picker/v1.php +++ b/lib/zin/wg/picker/v1.php @@ -100,7 +100,7 @@ class picker extends wg if(!is_string($item['value'])) $item['value'] = strval($item['value']); if($item['value'] === '0') $hasZeroValue = true; - if($pinyinKeys && !isset($item['keys'])) $item['keys'] = implode(' ', common::convert2Pinyin(array($item['text']))); + if($pinyinKeys && !isset($item['keys']) && class_exists('common')) $item['keys'] = implode(' ', common::convert2Pinyin(array($item['text']))); $pickerItems[] = $item; } }