From ddafcb0634de3dd8f8b1928bac88ad6f023761fa Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 9 Dec 2013 11:20:16 -0600
Subject: [PATCH] install: Fixup help tips on installer

---
 include/ajax.tips.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/ajax.tips.php b/include/ajax.tips.php
index 3b2a1d19a..ed560403e 100644
--- a/include/ajax.tips.php
+++ b/include/ajax.tips.php
@@ -31,8 +31,9 @@ class HelpTipAjaxAPI extends AjaxController {
 
         // Translate links to the root path of this installation
         foreach ($data as $tip=>&$info) {
-            $info = $ost->replaceTemplateVariables($info, array(
-                'config'=>$ost->getConfig()));
+            if ($ost)
+                $info = $ost->replaceTemplateVariables($info, array(
+                    'config'=>$ost->getConfig()));
             if (isset($info['links']))
                 foreach ($info['links'] as &$l)
                     if ($l['href'][0] == '/')
-- 
GitLab