diff options
| -rw-r--r-- | protected/models/Verein.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protected/models/Verein.php b/protected/models/Verein.php index 00d34b7..e3984db 100644 --- a/protected/models/Verein.php +++ b/protected/models/Verein.php @@ -123,7 +123,7 @@ class Verein extends CActiveRecord //$criteria->compare('startzeit','< '.$nowPlus); //$criteria->compare("endzeit"," <= ".$now,'AND'); $criteria->condition = 'published = 1 '; - $criteria->order = "name ASC"; + $criteria->order = "isnull(bild), isnull(hintergrund) asc, name ASC"; return new CActiveDataProvider($this, array( 'criteria'=>$criteria, )); |
