Vergleich inc/class_templates.php - 1.8.13 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 46Zeile 46
			$sql .= " ,'".trim($title)."'";
}


			$sql .= " ,'".trim($title)."'";
}


		$query = $db->simple_select("templates", "title,template", "title IN (''$sql) AND sid IN ('-2','-1','".$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'asc'));

		$query = $db->simple_select("templates", "title,template", "title IN (''$sql) AND sid IN ('-2','-1','".(int)$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'asc'));

		while($template = $db->fetch_array($query))
{
$this->cache[$template['title']] = $template['template'];

		while($template = $db->fetch_array($query))
{
$this->cache[$template['title']] = $template['template'];

Zeile 86Zeile 86
			}
else
{

			}
else
{

				$query = $db->simple_select("templates", "template", "title='".$db->escape_string($title)."' AND sid IN ('-2','-1','".$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'DESC', 'limit' => 1));

				$query = $db->simple_select("templates", "template", "title='".$db->escape_string($title)."' AND sid IN ('-2','-1','".(int)$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'DESC', 'limit' => 1));

			}

$gettemplate = $db->fetch_array($query);

			}

$gettemplate = $db->fetch_array($query);