Commit d6b6a091 authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Fix feature ID condition

parent ca6e427e
...@@ -844,7 +844,7 @@ class Features ...@@ -844,7 +844,7 @@ class Features
include_once(SERVER_ROOT."/../classes/keyword.php"); include_once(SERVER_ROOT."/../classes/keyword.php");
$k = new Keyword(); $k = new Keyword();
$krow = $k->KeywordGet($id_keyword); $krow = $k->KeywordGet($id_keyword);
$this->info = array('keyword'=>$krow['keyword']); $this->info = array('keyword'=>$krow['keyword'],'description'=>$krow['description']);
} }
break; break;
case "25": case "25":
......
...@@ -126,6 +126,9 @@ class PhPeaceUpdates ...@@ -126,6 +126,9 @@ class PhPeaceUpdates
{ {
switch($version_new) switch($version_new)
{ {
case "296":
$this->UpdateDB("267");
break;
case "295": case "295":
$this->UpdateDB("266"); $this->UpdateDB("266");
$events = array(); $events = array();
...@@ -464,6 +467,9 @@ class PhPeaceUpdates ...@@ -464,6 +467,9 @@ class PhPeaceUpdates
$dbconf = $conf->Get("dbconf"); $dbconf = $conf->Get("dbconf");
switch($db_version) switch($db_version)
{ {
case "267":
$db->query("ALTER TABLE features CHANGE COLUMN condition_id condition_id MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT '0'");
break;
case "266": case "266":
$db->ColumnAdd("events","image_ratio","DECIMAL(10, 8)","NULL",true); $db->ColumnAdd("events","image_ratio","DECIMAL(10, 8)","NULL",true);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment