Completed
Push — master ( 59e146...6afa36 )
by
unknown
02:30
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');
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             if (is_scalar($eFields)) {
24 24
                 $eFields = explode(",", $eFields);
25 25
             }
26
-            if ($sanitarTags = $this->DocLister->getCFGDef('sanitarTags',0)) {
26
+            if ($sanitarTags = $this->DocLister->getCFGDef('sanitarTags', 0)) {
27 27
                 $sanitarTagsFields = array();
28 28
                 if (is_numeric($sanitarTags) && is_array($eFields)) {
29 29
                     $sanitarTagsFields = $eFields;        
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,9 @@
 block discarded – undo
34 34
             if (is_array($eFields)) {
35 35
                 foreach ($eFields as $field) {
36 36
                     $val = APIHelpers::getkey($out, $field, '');
37
-                    if (in_array($field, $sanitarTagsFields)) $val = APIHelpers::sanitarTag($val);
37
+                    if (in_array($field, $sanitarTagsFields)) {
38
+                        $val = APIHelpers::sanitarTag($val);
39
+                    }
38 40
                     $out['e.' . $field] = APIHelpers::e($val);
39 41
                 }
40 42
             }
Please login to merge, or discard this patch.