From: daniel Date: Mon, 23 Apr 2012 12:27:45 +0000 (+0200) Subject: fix redirect detection in getAutosummary X-Git-Tag: 1.31.0-rc.0~22097^2^2~222 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=2564066a3a4a94c668c3cde1b6b21dee288551cc;p=lhc%2Fweb%2Fwiklou.git fix redirect detection in getAutosummary --- diff --git a/includes/ContentHandler.php b/includes/ContentHandler.php index 2768af43ea..82fb0496ad 100644 --- a/includes/ContentHandler.php +++ b/includes/ContentHandler.php @@ -475,8 +475,8 @@ abstract class ContentHandler { // Redirect autosummaries - $ot = !empty( $ot ) ? $oldContent->getRedirectTarget() : false; - $rt = !empty( $rt ) ? $newContent->getRedirectTarget() : false; + $ot = !is_null( $oldContent ) ? $oldContent->getRedirectTarget() : false; + $rt = !is_null( $newContent ) ? $newContent->getRedirectTarget() : false; if ( is_object( $rt ) && ( !is_object( $ot ) || !$rt->equals( $ot ) || $ot->getFragment() != $rt->getFragment() ) ) {