summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
be8e7d6)
{
# si la table 'config' n'existe pas alors on suppose qu'aucune table n'existe
$version = 0;
{
# si la table 'config' n'existe pas alors on suppose qu'aucune table n'existe
$version = 0;
- if(!$version = (int)@mysql_fetch_object(mysql_query("SELECT valeur FROM config WHERE nom = 'version'")))
+ $res = @mysql_fetch_object(mysql_query("SELECT valeur FROM config WHERE nom = 'version'"));
+ if (!mysql_error())
+ $version = $res->valeur;
+
+ if($version == 0)
{
mysql_query("BEGIN TRANSACTION");
creer_db();
{
mysql_query("BEGIN TRANSACTION");
creer_db();