From f9287eef656d08da6903fca222f0ccb17fe22b6c Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 17 Feb 2011 21:39:20 +0100 Subject: [PATCH] Use static variable instead of property --- plugins/dump-xml.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/dump-xml.php b/plugins/dump-xml.php index 7e8f3dd2..af39363f 100644 --- a/plugins/dump-xml.php +++ b/plugins/dump-xml.php @@ -6,7 +6,6 @@ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) */ class AdminerDumpXml { - var $_database = false; function dumpFormat() { return array('xml' => 'XML'); @@ -23,9 +22,10 @@ class AdminerDumpXml { } function dumpData($table, $style, $query) { + static $database = false; if ($_POST["format"] == "xml") { - if (!$this->_database) { - $this->_database = true; + if (!$database) { + $database = true; echo "\n"; register_shutdown_function(array($this, '_database')); }