This commit is contained in:
thinkphp
2017-04-27 18:47:09 +08:00
parent 586b1a628b
commit cb7c362304

View File

@@ -1194,7 +1194,7 @@ class Validate
*/ */
protected function getDataValue($data, $key) protected function getDataValue($data, $key)
{ {
if (is_numberic($key)) { if (is_numeric($key)) {
$value = $key; $value = $key;
} elseif (strpos($key, '.')) { } elseif (strpos($key, '.')) {
// 支持二维数组验证 // 支持二维数组验证