@@ -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'); |
@@ -3219,7 +3219,7 @@ discard block |
||
| 3219 | 3219 | // Deleting an existing label? |
| 3220 | 3220 | elseif (isset($_POST['delete'], $_POST['delete_label'])) |
| 3221 | 3221 | { |
| 3222 | - foreach ($_POST['delete_label'] AS $label => $dummy) |
|
| 3222 | + foreach ($_POST['delete_label'] as $label => $dummy) |
|
| 3223 | 3223 | { |
| 3224 | 3224 | unset($the_labels[$label]); |
| 3225 | 3225 | $labels_to_remove[] = $label; |
@@ -3260,7 +3260,7 @@ discard block |
||
| 3260 | 3260 | if (!empty($labels_to_add)) |
| 3261 | 3261 | { |
| 3262 | 3262 | $inserts = array(); |
| 3263 | - foreach ($labels_to_add AS $label) |
|
| 3263 | + foreach ($labels_to_add as $label) |
|
| 3264 | 3264 | $inserts[] = array($user_info['id'], $label); |
| 3265 | 3265 | |
| 3266 | 3266 | $smcFunc['db_insert']('', '{db_prefix}pm_labels', array('id_member' => 'int', 'name' => 'string-30'), $inserts, array()); |
@@ -3269,7 +3269,7 @@ discard block |
||
| 3269 | 3269 | // Update existing labels as needed |
| 3270 | 3270 | if (!empty($label_upates)) |
| 3271 | 3271 | { |
| 3272 | - foreach ($label_updates AS $id => $name) |
|
| 3272 | + foreach ($label_updates as $id => $name) |
|
| 3273 | 3273 | { |
| 3274 | 3274 | $smcFunc['db_query']('', ' |
| 3275 | 3275 | UPDATE {db_prefix}labels |
@@ -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; |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | |
| 117 | 117 | $this->_attachmentUploadDir = $modSettings['attachmentUploadDir']; |
| 118 | 118 | |
| 119 | - $this->_attchDir = $context['attach_dir'] = isset($this->_attachmentUploadDir[$modSettings['currentAttachmentUploadDir']]) ? $this->_attachmentUploadDir[$modSettings['currentAttachmentUploadDir']] : NULL; |
|
| 119 | + $this->_attchDir = $context['attach_dir'] = isset($this->_attachmentUploadDir[$modSettings['currentAttachmentUploadDir']]) ? $this->_attachmentUploadDir[$modSettings['currentAttachmentUploadDir']] : null; |
|
| 120 | 120 | |
| 121 | 121 | $this->_canPostAttachment = $context['can_post_attachment'] = !empty($modSettings['attachmentEnable']) && $modSettings['attachmentEnable'] == 1 && (allowedTo('post_attachment', $this->_board) || ($modSettings['postmod_active'] && allowedTo('post_unapproved_attachments', $this->_board))); |
| 122 | 122 | } |