Completed
Push — master ( 142840...59e146 )
by
unknown
04:33
created
assets/snippets/DocLister/core/extender/e.extender.inc 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('MODX_BASE_PATH')) {
2
+if ( ! defined('MODX_BASE_PATH')) {
3 3
     die('HACK???');
4 4
 }
5 5
 include_once(MODX_BASE_PATH . 'assets/lib/APIHelpers.class.php');
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             if (is_array($eFields)) {
27 27
                 foreach ($eFields as $field) {
28 28
                     $val = APIHelpers::getkey($out, $field, '');
29
-                    if ($this->DocLister->getCFGDef('sanitarTags',0)) $val = APIHelpers::sanitarTag($val);
29
+                    if ($this->DocLister->getCFGDef('sanitarTags', 0)) $val = APIHelpers::sanitarTag($val);
30 30
                     $out['e.' . $field] = APIHelpers::e($val);
31 31
                 }
32 32
             }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
             if (is_array($eFields)) {
27 27
                 foreach ($eFields as $field) {
28 28
                     $val = APIHelpers::getkey($out, $field, '');
29
-                    if ($this->DocLister->getCFGDef('sanitarTags',0)) $val = APIHelpers::sanitarTag($val);
29
+                    if ($this->DocLister->getCFGDef('sanitarTags',0)) {
30
+                        $val = APIHelpers::sanitarTag($val);
31
+                    }
30 32
                     $out['e.' . $field] = APIHelpers::e($val);
31 33
                 }
32 34
             }
Please login to merge, or discard this patch.