From: <var...@us...> - 2022-01-26 21:03:47
|
Revision: 10946 http://sourceforge.net/p/phpwiki/code/10946 Author: vargenau Date: 2022-01-26 21:03:44 +0000 (Wed, 26 Jan 2022) Log Message: ----------- Make renaming a page work with PDO Modified Paths: -------------- trunk/lib/WikiDB/PDO.php Modified: trunk/lib/WikiDB/PDO.php =================================================================== --- trunk/lib/WikiDB/PDO.php 2022-01-26 14:15:41 UTC (rev 10945) +++ trunk/lib/WikiDB/PDO.php 2022-01-26 21:03:44 UTC (rev 10946) @@ -72,7 +72,7 @@ if ($pagename === '') { return false; } - if (!array_key_exists($pagename, $this->_cache->_id_cache)) { + if (empty($this->_cache->id_cache[$pagename])) { $this->_cache->_id_cache[$pagename] = $this->_backend->is_wiki_page($pagename); } return $this->_cache->_id_cache[$pagename]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |