* Fix compatibility.

This commit is contained in:
zhujinyong
2021-11-09 20:43:53 +08:00
parent 9705edb48e
commit ea45b8f9ea
3 changed files with 2 additions and 21 deletions

View File

@@ -544,7 +544,7 @@ class baseEntry
if(!$value or $value == '0000-00-00') return null;
return $value;
case 'bool':
return boolval($value) ? true : false;
return !empty($value);
case 'idList':
$values = explode(',', $value);
if(empty($values)) return array();

View File

@@ -9,7 +9,7 @@
<rule ref="PHPCompatibility">
<exclude-pattern>roadmap.css</exclude-pattern>
</rule>
<config name="testVersion" value="5.3" />
<config name="testVersion" value="5.3-" />
<!--rule ref="Generic.Files.LineLength">
<properties>

View File

@@ -1,19 +0,0 @@
<?php
/**
* The control file of admin module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package admin
* @version $Id: control.php 4460 2013-02-26 02:28:02Z chencongzhi520@gmail.com $
* @link http://www.zentao.net
*/
$a = [];
class View
{
public function include(View $view)
{
}
}