https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28267

Marcel de Rooy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #43 from Marcel de Rooy <[email protected]> ---
+        my $sth = $dbh->prepare($sql);
+        $sth->execute($database);
+        my $row = $sth->fetchrow_arrayref;
+        my $count = $row->[0];
+        if ($count){
+            $result{count} = $count;
+        }
Why do you test $count here? And why not shorter like : $result{count} =
$dbh->selectrow_arrayref->[0] ?

+    $schema->storage->txn_begin;
+    my $dbh = C4::Context->dbh;
+    $dbh->do("ALTER TABLE tags row_format=COMPACT;");

False idea of security? The txn cant have an ALTER TABLE, right?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to