From d79bc72848fa8fe73fc51f0ba954068ee180c5d6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 6 Jun 2007 13:21:39 +0000 Subject: [PATCH] =?utf8?q?Ein=20Fehler=20an=20dieser=20Stelle=20ist=20nich?= =?utf8?q?t=20schlimm,=20da=20er=20auch=20dadurch=20zustande=20gekommen=20?= =?utf8?q?sein=20kann,=20dass=20die=20Tabelle=20'schema=5Finfo'=20noch=20n?= =?utf8?q?icht=20existiert.=20Das=20passiert=20z.B.,=20wenn=20man=20eine?= =?utf8?q?=20pre-2.4.0.0-Datenbank=20im=20Admin-Men=C3=BC=20aktualisieren?= =?utf8?q?=20m=C3=B6chte.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/User.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SL/User.pm b/SL/User.pm index d2e914f7a..830544b8c 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -966,9 +966,10 @@ sub update2_available { $query = qq|SELECT tag FROM schema_info|; $sth = $dbh->prepare($query); - $sth->execute() || $form->dberror($query); - while (($tag) = $sth->fetchrow_array()) { - $controls->{$tag}->{"applied"} = 1 if (defined($controls->{$tag})); + if ($sth->execute()) { + while (($tag) = $sth->fetchrow_array()) { + $controls->{$tag}->{"applied"} = 1 if (defined($controls->{$tag})); + } } $sth->finish(); $dbh->disconnect(); -- 2.20.1