From 0e4cda9fccf5256d8187c799509735ec24feabba Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Sun, 5 May 2013 06:06:42 +0000 Subject: [PATCH] * use @ to aviod the warnning message. --- module/install/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/install/model.php b/module/install/model.php index 654ed92f09..63f4ba0f91 100644 --- a/module/install/model.php +++ b/module/install/model.php @@ -472,7 +472,7 @@ class installModel extends model { if(strpos(PHP_OS, 'WIN') !== false) { - $mysql = `wmic process where name='mysqld.exe' get executablepath`; + $mysql = @`wmic process where name='mysqld.exe' get executablepath`; if(strpos($mysql, 'mysqld.exe') !== false) { $mysql = explode("\n", $mysql); @@ -481,7 +481,7 @@ class installModel extends model } else { - $mysqldump = trim(`which mysqldump`); + $mysqldump = trim(@`which mysqldump`); } }