This commit is contained in:
Shish 2023-06-28 13:08:59 +00:00
parent d30b4c97ef
commit 0f162fe32a
3 changed files with 3 additions and 3 deletions

View file

@ -140,7 +140,7 @@ class BaseThemelet
$out = emptyHTML();
$n = 0;
foreach ($pieces as $piece) {
if($n++ > 0) {
if ($n++ > 0) {
$out->appendChild($glue);
}
$out->appendChild($piece);

View file

@ -98,7 +98,7 @@ class Tag
// don't cache in unit tests, because the test suite doesn't
// reset static variables but it does reset the database
if(!defined("UNITTEST") && array_key_exists($tag, self::$tag_id_cache)) {
if (!defined("UNITTEST") && array_key_exists($tag, self::$tag_id_cache)) {
return self::$tag_id_cache[$tag];
}

View file

@ -341,7 +341,7 @@ class TagEdit extends Extension
$last_id = $image->id;
}
if($commit) {
if ($commit) {
$database->commit();
$database->begin_transaction();
}