xiao9469 发表于 2023-2-13 10:49:33

兼容php8代码

if ( count( $_GET[ 'attachnew' ] ) > 0 && $this->_hasimg( $_GET[ 'attachnew' ] ) ) {

要兼容PHP8的话 如下更改 是否合理 请高手指教

if ( (is_array($_GET['attachnew']) && count($_GET['attachnew']) > 0)&& $this->_hasimg($_GET['attachnew']) ){

浅生 发表于 2023-2-13 10:49:49

if (isset($_GET['attachnew']) && is_array($_GET['attachnew']) && count($_GET['attachnew']) > 0 && $this->_hasimg($_GET['attachnew'])){
页: [1]
查看完整版本: 兼容php8代码

创宇盾启航版免费网站防御网站加速服务