@@ -419,7 +419,7 @@ |
||
| 419 | 419 | |
| 420 | 420 | if (checkImagick()) |
| 421 | 421 | { |
| 422 | - $imagick = New Imagick($destName); |
|
| 422 | + $imagick = new Imagick($destName); |
|
| 423 | 423 | $src_width = empty($src_width) ? $imagick->getImageWidth() : $src_width; |
| 424 | 424 | $src_height = empty($src_height) ? $imagick->getImageHeight() : $src_height; |
| 425 | 425 | $dest_width = empty($max_width) ? $src_width : $max_width; |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | { |
| 42 | 42 | if (class_exists('Imagick')) |
| 43 | 43 | { |
| 44 | - $temp = New Imagick; |
|
| 44 | + $temp = new Imagick; |
|
| 45 | 45 | $temp2 = $temp->getVersion(); |
| 46 | 46 | $im_version = $temp2['versionString']; |
| 47 | 47 | $extension_version = 'Imagick ' . phpversion('Imagick'); |
@@ -670,7 +670,7 @@ |
||
| 670 | 670 | foreach ($columns as $columnName => $type) |
| 671 | 671 | { |
| 672 | 672 | //check pk fiel |
| 673 | - IF (in_array($columnName, $keys)) |
|
| 673 | + if (in_array($columnName, $keys)) |
|
| 674 | 674 | { |
| 675 | 675 | $key_str .= ($count_pk > 0 ? ',' : ''); |
| 676 | 676 | $key_str .= $columnName; |
@@ -3304,7 +3304,7 @@ discard block |
||
| 3304 | 3304 | // Deleting an existing label? |
| 3305 | 3305 | elseif (isset($_POST['delete'], $_POST['delete_label'])) |
| 3306 | 3306 | { |
| 3307 | - foreach ($_POST['delete_label'] AS $label => $dummy) |
|
| 3307 | + foreach ($_POST['delete_label'] as $label => $dummy) |
|
| 3308 | 3308 | { |
| 3309 | 3309 | unset($the_labels[$label]); |
| 3310 | 3310 | $labels_to_remove[] = $label; |
@@ -3345,7 +3345,7 @@ discard block |
||
| 3345 | 3345 | if (!empty($labels_to_add)) |
| 3346 | 3346 | { |
| 3347 | 3347 | $inserts = array(); |
| 3348 | - foreach ($labels_to_add AS $label) |
|
| 3348 | + foreach ($labels_to_add as $label) |
|
| 3349 | 3349 | $inserts[] = array($user_info['id'], $label); |
| 3350 | 3350 | |
| 3351 | 3351 | $smcFunc['db_insert']('', '{db_prefix}pm_labels', array('id_member' => 'int', 'name' => 'string-30'), $inserts, array()); |
@@ -3354,7 +3354,7 @@ discard block |
||
| 3354 | 3354 | // Update existing labels as needed |
| 3355 | 3355 | if (!empty($label_updates)) |
| 3356 | 3356 | { |
| 3357 | - foreach ($label_updates AS $id => $name) |
|
| 3357 | + foreach ($label_updates as $id => $name) |
|
| 3358 | 3358 | { |
| 3359 | 3359 | $smcFunc['db_query']('', ' |
| 3360 | 3360 | UPDATE {db_prefix}pm_labels |