From: Stéphane Jacob Date: Sun, 29 Mar 2009 14:33:47 +0000 (+0200) Subject: Fixes small mistakes. X-Git-Tag: xorg/1.0.0~332^2~337^2~5 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=53390175bfcb3458a4440d13f9d3d79f764cce11;p=platal.git Fixes small mistakes. --- diff --git a/upgrade/newdirectory-0.0.1/12_secteurs.sql b/upgrade/newdirectory-0.0.1/12_secteurs.sql index 67c9bdd..799870c 100644 --- a/upgrade/newdirectory-0.0.1/12_secteurs.sql +++ b/upgrade/newdirectory-0.0.1/12_secteurs.sql @@ -24,7 +24,7 @@ CREATE TABLE IF NOT EXISTS profile_job_subsubsector_enum ( sectorid TINYINT(2) UNSIGNED NOT NULL, subsectorid TINYINT(3) UNSIGNED NOT NULL, name VARCHAR(256) NOT NULL DEFAULT '', - flags ENUM('display') NOT NULL DEFAULT 'display', + flags SET('display') NOT NULL DEFAULT 'display', PRIMARY KEY(id) ) CHARSET=utf8; diff --git a/upgrade/newdirectory-0.0.1/alternate_subsubsectors.php b/upgrade/newdirectory-0.0.1/alternate_subsubsectors.php index fc6b856..e94dadd 100755 --- a/upgrade/newdirectory-0.0.1/alternate_subsubsectors.php +++ b/upgrade/newdirectory-0.0.1/alternate_subsubsectors.php @@ -16,7 +16,7 @@ foreach ($values as $val) { if ($val['tag'] == 'grand-domaine' && $val['type'] == 'open') { $res = XDB::execute('INSERT INTO profile_job_sector_enum (name) VALUES ({?})', - ucfirst(strtolower($val['attributes']['intitule']))); + ucfirst(mb_strtolower($val['attributes']['intitule']))); $sectorid = XDB::insertId(); } if ($val['tag'] == 'domaine' && $val['type'] == 'open') {