Bug #468

Undefined variable: _TemplateIDtoAlter /config/class.SWIFT_SetupDatabase_customtweaks.php:245)

Added by Jerome Rose about 6 years ago.

Status:New Start date:24 Apr 2015
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-

Description

Install of app with fresh site setup fails with:
Notice
Undefined variable: TemplateIDtoAlter (C:/inetpub/kayako_dev/_apps/customtweaks/config/class.SWIFT_SetupDatabase_customtweaks.php:245)

assigning empty array before while loop resolves issue

$this->Database->Query("select templateid from " . TABLE_PREFIX . "templates where name = 'footer'");

+++ $_TemplateIDtoAlter = array();

while ($this->Database->NextRecord()) {

$_TemplateIDtoAlter[] = $this->Database->Record['templateid'];

}

foreach($_TemplateIDtoAlter as $TemplateID){

Also available in: Atom PDF