https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113906
Revision: 113906
Author: schuellersa
Date: 2012-03-15 11:02:59 +0000 (Thu, 15 Mar 2012)
Log Message:
-----------
isset FIX
Modified Paths:
--------------
trunk/extensions/SolrStore/templates/SolrSearchTemplate_FIS.php
Modified: trunk/extensions/SolrStore/templates/SolrSearchTemplate_FIS.php
===================================================================
--- trunk/extensions/SolrStore/templates/SolrSearchTemplate_FIS.php
2012-03-15 10:56:13 UTC (rev 113905)
+++ trunk/extensions/SolrStore/templates/SolrSearchTemplate_FIS.php
2012-03-15 11:02:59 UTC (rev 113906)
@@ -44,7 +44,6 @@
// Bugfix: clear the var!
unset( $this->Inhalt_de_t );
unset( $this->methode );
- print_r( $xml );
// get Size, Wordcound, Date, Inhalt_de_t from XML:
foreach ( $xml->arr as $doc ) {
switch ( $doc[ 'name' ] ) {
@@ -69,31 +68,31 @@
case 'Zuletzt geƤndert_dt':
$this->mDate = $doc->date;
break;
-
+
case 'Inhalt de_t':
$this->Inhalt_de_t[ ] = $doc->str;
break;
-
+
case 'Inhalt fr_t':
$this->Inhalt_de_t[ ] = $doc->str;
break;
-
+
case 'Inhalt en_t':
$this->Inhalt_de_t[ ] = $doc->str;
break;
-
+
case 'category':
$this->category = $doc->str;
break;
-
+
case 'Higher-Dept_s':
$this->higherdept = $doc->str;
break;
-
+
case 'Main-Dept_s':
$this->maindept = $doc->str;
break;
-
+
case 'Methode_t':
foreach ( $doc->str as $methoden ) {
$this->methode[ ] = $methoden;
@@ -184,11 +183,16 @@
$tmpmethode = "";
if ( count( $this->methode ) > 0 ) {
for ( $i = 0; $i <= count(
$this->methode ); $i++ ) {
- if ( $i == 0 ) {
- $tmpmethode =
"Vorgehensweise: " . $this->methode[ $i ];
- } else {
- if ( $this->methode[ $i
] != "" ) {
- $tmpmethode.=",
" . $this->methode[ $i ];
+
+ if ( isset( $this->methode[ $i
] ) ) {
+ if ( $this->methode[ $i
] != "keine Angabe" ) { // FRAGEN !!
+ if ( $i == 0 ) {
+
$tmpmethode = "Vorgehensweise: " . $this->methode[ $i ];
+ } else {
+ if (
isset( $this->methode[ $i ] ) ) {
+
$tmpmethode.=", " . $this->methode[ $i ];
+ }
+ }
}
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
