Index: trunk/extensions/CentralNotice/SpecialBannerListLoader.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | // Pull out values |
72 | 72 | foreach ( $notices as $notice => $val ) { |
73 | 73 | // Either match against ALL project or a specific project |
74 | | - if ( $val['project'] == '' || $val['project'] == $this->project ) { |
| 74 | + if ( $val['project'] === '' || $val['project'] == $this->project ) { |
75 | 75 | $templates = $this->centralNoticeDB->selectTemplatesAssigned( $notice ); |
76 | 76 | break; |
77 | 77 | } |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | $templates = CentralNotice::selectNoticeTemplates( $this->project, $this->language, $this->location ); |
95 | 95 | } |
96 | 96 | |
97 | | - return 'Banners = ' . json_encode( $templates ); |
| 97 | + return 'banners = ' . FormatJson::encode( $templates ); |
98 | 98 | } |
99 | 99 | |
100 | 100 | } |