Fix return type of MessageCache::getMsgFromNamespace for existing
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Fri, 17 May 2013 12:10:31 +0000 (12:10 +0000)
committerTim Starling <tstarling@wikimedia.org>
Tue, 11 Jun 2013 22:48:05 +0000 (08:48 +1000)
commit126f66d95547aee888bd06c1307557d340f4a5a5
tree6c2835234bf4ab9a229f55ebe4a9523842304156
parentf88e17f2717d1d3060408f816ca79c2275a3d4a1
Fix return type of MessageCache::getMsgFromNamespace for existing

Functions expect the message cache to return a string if a message
exists, even empty, and false if it does not exist. This adds casting
to the substr() function, which would return false for existing
messages that were just blank.

Bug: 14176
Change-Id: Id91914a3701fe53f1e2e894824512489392c628b
RELEASE-NOTES-1.22
includes/cache/MessageCache.php