1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-18 19:55:12 -08:00
parent 2b8a3cff60
commit 5b82c292b1
80 changed files with 1888 additions and 1731 deletions

View File

@@ -503,11 +503,7 @@ function step5()
$sefs[$forum_sef] = true;
// $tmp['_FIELD_TYPES'] = $ftypes['_FIELD_TYPES'];
if ($sql -> insert('forum_new', $tmp))
{
}
else
if (!$sql -> insert('forum_new', $tmp))
{
$mes->addDebug("Insert failed on " . print_a($tmp, true));
$mes->addError($sql->getLastErrorText());
@@ -1687,21 +1683,21 @@ class forumUpgrade
//Copy was successful, let's delete the original files now.
// $r = true;
// $r = unlink($old);
if (!$r)
{
//if (!$r)
// {
// $error = 'Was unable to delete old attachment: '.$old;
// return false;
}
if ($oldThumb)
{
// }
// if ($oldThumb)
// {
// $r = true;
// $r = unlink($oldThumb);
if (!$r)
{
//if (!$r)
// {
// $error = 'Was unable to delete old thumb: '.$oldThumb;
// return false;
}
}
// }
// }
return true;
}