Fixed PHP error on undefined variable

This commit is contained in:
alistair3149 2020-06-05 17:13:55 -04:00
parent 1cdde07e32
commit f890f96ca0
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -17,6 +17,15 @@ class CitizenTemplate extends BaseTemplate {
* Outputs the entire contents of the page
*/
public function execute() {
// TODO: Convert to Mustache
ob_start();
$html = $this->getUserIcons();
echo $html;
$htmlUnportedUsericons = ob_get_contents();
ob_end_clean();
// Naming conventions for Mustache parameters:
// - Prefix "is" for boolean values.
// - Prefix "msg-" for interface messages.
@ -99,14 +108,6 @@ class CitizenTemplate extends BaseTemplate {
// TODO: Convert to Mustache
ob_start();
$html = $this->getUserIcons();
echo $html;
$htmlUnportedUsericons = ob_get_contents();
ob_end_clean();
ob_start();
$html = $this->getPageTools();
echo $html;