From 69d48dc5e46df3ba09f7646173c699918d114f92 Mon Sep 17 00:00:00 2001 From: songxk Date: Thu, 16 Jun 2016 11:33:25 +0800 Subject: [PATCH] Update Upload.class.php fixed undefined variable bug --- ThinkPHP/Library/Think/Upload.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThinkPHP/Library/Think/Upload.class.php b/ThinkPHP/Library/Think/Upload.class.php index 3dd4cf5b2..e155d69bf 100644 --- a/ThinkPHP/Library/Think/Upload.class.php +++ b/ThinkPHP/Library/Think/Upload.class.php @@ -270,7 +270,7 @@ private function setDriver($driver = null, $config = null) $class = strpos($driver, '\\') ? $driver : 'Think\\Upload\\Driver\\' . ucfirst(strtolower($driver)); $this->uploader = new $class($config); if (!$this->uploader) { - E("不存在上传驱动:{$name}"); + E("不存在上传驱动:{$driver}"); } }