From ec445e3121cdffc77a481f7c8fc0cb1bb8f152a6 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Sun, 28 Apr 2024 09:03:28 +0800 Subject: [PATCH] * Adjust picker init page logic. --- lib/zin/wg/picker/v1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }