From ec76ffecc1e14abf03338a169e69281477e570e9 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 3 Feb 2009 00:06:46 +0000 Subject: [PATCH] (bug 17330) Fix minor warning if $titles is null, which it can be. --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 8c3789779e..d665f2b001 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -315,7 +315,7 @@ class Title { */ public static function newFromRedirectRecurse( $text ) { $titles = self::newFromRedirectArray( $text ); - return array_pop( $titles ); + return $titles ? array_pop( $titles ) : null; } /** -- 2.20.1