From 283eabc86a9f79f2eea73e1aba41e591cbf6e80f Mon Sep 17 00:00:00 2001 From: wjames5 Date: Tue, 28 Oct 2008 01:27:53 +0000 Subject: call verify on parent classes if verify fails to return all errors to user in one shot --- BitArticle.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/BitArticle.php b/BitArticle.php index 14ace33..2a1557f 100644 --- a/BitArticle.php +++ b/BitArticle.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.151 $ $Date: 2008/10/20 21:40:08 $ $Author: spiderr $ + * @version $Revision: 1.152 $ $Date: 2008/10/28 01:27:53 $ $Author: wjames5 $ */ /** @@ -301,6 +301,11 @@ class BitArticle extends LibertyMime { if ( array_search( $pParamHash['article_store']['status_id'], array( ARTICLE_STATUS_DENIED, ARTICLE_STATUS_DRAFT, ARTICLE_STATUS_PENDING ) ) ) { $this->mInfo["no_index"] = true ; } + + // if we have an error we get them all by checking parent classes for additional errors + if( count( $this->mErrors ) > 0 ){ + parent::verify( $pParamHash ); + } return( count( $this->mErrors )== 0 ); } -- cgit v1.3