Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -99,12 +99,12 @@ |
100 | 100 | $values = array(); |
101 | 101 | foreach ( $res as $value ) { |
102 | 102 | if ( method_exists( $value, 'getTitle' ) ) { |
103 | | - $title = $value->getTitle(); |
104 | | - if ( !is_null( $title ) ) { |
105 | | - $values[] = $title->getText(); |
| 103 | + $valueTitle = $value->getTitle(); |
| 104 | + if ( !is_null( $valueTitle ) ) { |
| 105 | + $values[] = $valueTitle->getText(); |
106 | 106 | } |
107 | 107 | } else { |
108 | | - $values[] = str_replace( '_' , ' ', $title->getWikiValue() ); |
| 108 | + $values[] = str_replace( '_' , ' ', $value->getWikiValue() ); |
109 | 109 | } |
110 | 110 | } |
111 | 111 | return array_unique( $values ); |