|
@@ -104,8 +104,12 @@ |
|
|
block discarded – undo |
|
104
|
104
|
$segment = substr(explode('-', $title, 2)[1], 0, -3); |
|
105
|
105
|
$direction = substr(explode('-', $title, 2)[1], -2); |
|
106
|
106
|
|
|
107
|
|
- if (empty($traffic[$highway])) $traffic[$highway] = []; |
|
108
|
|
- if (empty($traffic[$highway][$segment])) $traffic[$highway][$segment] = []; |
|
|
107
|
+ if (empty($traffic[$highway])) { |
|
|
108
|
+ $traffic[$highway] = []; |
|
|
109
|
+ } |
|
|
110
|
+ if (empty($traffic[$highway][$segment])) { |
|
|
111
|
+ $traffic[$highway][$segment] = []; |
|
|
112
|
+ } |
|
109
|
113
|
|
|
110
|
114
|
$traffic[$highway][$segment][$direction] = $description; |
|
111
|
115
|
$traffic[$highway][$segment]['pubDate'] = $pubDate; |
Please login to merge, or discard this patch.