From: Robert Treat Date: Sat, 6 Jul 2019 23:50:02 +0000 (-0400) Subject: Fix Deprecation Warning: Non-static method GUI::printCombo() should not be called... X-Git-Tag: REL_7-12-1~33^2 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=489d2f655eaa8e0527b3b72c2284817b295df288;p=phppgadmin.git Fix Deprecation Warning: Non-static method GUI::printCombo() should not be called statically --- diff --git a/classes/Gui.php b/classes/Gui.php index f56da637..917cc9fc 100755 --- a/classes/Gui.php +++ b/classes/Gui.php @@ -21,7 +21,7 @@ * @param (optional) $iSize int to specify the size IF a multi select combo * @return string with the generated HTML select box */ - function printCombo(&$arrOptions, $szName, $bBlankEntry = true, $szDefault = '', $bMultiple = false, $iSize = 10) { + static function printCombo(&$arrOptions, $szName, $bBlankEntry = true, $szDefault = '', $bMultiple = false, $iSize = 10) { $htmlOut = ''; if ($bMultiple) // If multiple select combo $htmlOut .= "