Commit 0a650bb4 by 冷斌

fix bug

parent ebf35c0b
......@@ -16,10 +16,9 @@ function returnInfo($type, $msg)
function getConfig($link)
{
$config=M("options")->where("option_name='configpri'")->getField("option_value");
$result = mysqli_query($link, "select option_value from cmf_options where option_name='configpri' ");
$row = mysqli_fetch_assoc($result);
return json_decode($config,$row['option_value']);
return json_decode($row['option_value'], true);
}
......@@ -35,6 +34,7 @@ if (!$link) {
echo $this->returnInfo("FAIL", "数据库连接失败");
die;
}
mysqli_select_db($link, 'zhibo');
mysqli_query($link, "set names utf8");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment