修改了评审意见调用的逻辑

This commit is contained in:
Li Jianxuan 2011-10-31 08:35:56 +00:00
parent 5ba5652fe5
commit a94f95813c
1 changed files with 6 additions and 0 deletions

View File

@ -960,6 +960,8 @@ class Admin_ReviewController extends Zend_Controller_Action
$wheresql[] = " md.uuid='$uuid' "; $wheresql[] = " md.uuid='$uuid' ";
} }
$wheresql[]=' r.status>-1 ';
if(!empty($q) && !empty($search)) if(!empty($q) && !empty($search))
{ {
if (preg_match("/[<|>|#|$|%|^|*|(|)|{|}|'|\"|;|:]/i",$q) || !is_numeric($search)) if (preg_match("/[<|>|#|$|%|^|*|(|)|{|}|'|\"|;|:]/i",$q) || !is_numeric($search))
@ -1009,6 +1011,8 @@ class Admin_ReviewController extends Zend_Controller_Action
$wheresql = array(); $wheresql = array();
$wheresql[]=' r.status>-1 ';
if(!empty($q) && !empty($search)) if(!empty($q) && !empty($search))
{ {
if (preg_match("/[<|>|#|$|%|^|*|(|)|{|}|'|\"|;|:]/i",$q) || !is_numeric($search)) if (preg_match("/[<|>|#|$|%|^|*|(|)|{|}|'|\"|;|:]/i",$q) || !is_numeric($search))
@ -1112,6 +1116,8 @@ class Admin_ReviewController extends Zend_Controller_Action
$wheresql = array(); $wheresql = array();
$wheresql[]=' r.status>-1 ';
if(!empty($q) && !empty($search)) if(!empty($q) && !empty($search))
{ {
if (preg_match("/[<|>|#|$|%|^|*|(|)|{|}|'|\"|;|:]/i",$q) || !is_numeric($search)) if (preg_match("/[<|>|#|$|%|^|*|(|)|{|}|'|\"|;|:]/i",$q) || !is_numeric($search))