兼容php8代码
2023/02/13 10:49:33
- if ( count( $_GET[ 'attachnew' ] ) > 0 && $this->_hasimg( $_GET[ 'attachnew' ] ) ) {
要兼容PHP8的话 如下更改 是否合理 请高手指教
- if ( (is_array($_GET['attachnew']) && count($_GET['attachnew']) > 0)&& $this->_hasimg($_GET['attachnew']) ){