PluginProbe
ShiftController Employee Shift Scheduling / trunk
ShiftController Employee Shift Scheduling vtrunk
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | hc3/uri.php +6 -4 4.9.84trunk View file →
@@ -258,12 +258,14 @@
258 258 $host = $_SERVER['HTTP_HOST'];
259 259 }
260 260
261 261 if( $noPort ){
262 - $pos = strpos( $host, ':' );
263 - if( false !== $pos ){
264 - $host = substr( $host, 0, $pos );
265 - }
262 + if (is_string($host)) {
263 + $pos = strpos( $host, ':' );
264 + if( false !== $pos ){
265 + $host = substr( $host, 0, $pos );
266 + }
267 + }
266 268 }
267 269
268 270 $return .= $host;
269 271