Fix typo in substr in commit 0db98acc5e

pull/2487/head
Yannick Warnier 9 years ago
parent 3911003fde
commit 6d383d6dd8
  1. 2
      plugin/vchamilo/lib/Virtual.php

@ -959,7 +959,7 @@ class Virtual
} }
$data->root_web = api_add_trailing_slash($data->root_web); $data->root_web = api_add_trailing_slash($data->root_web);
if (substr($data->root_web, 4) != 'http') { if (substr($data->root_web, 0, 4) != 'http') {
$data->root_web = api_get_protocol().'://'.$data->root_web; $data->root_web = api_get_protocol().'://'.$data->root_web;
} }

Loading…
Cancel
Save