}
}
- // Only run these tests for 'l' (getList), 'g' (getEntry), 'e' (editEntry), 'u' (updateEntry)
+ // Don't run the following tests for 'l' (getList), 'g' (getEntry), 'e' (editEntry), 'u' (updateEntry)
if ($a != 'l' && $a != 'g' && $a != 'e' && $a != 'u') {
return $r;
}
// Check that URLs have http:// in front of them.
- if (strtolower(substr($r['url'],0,4)) != 'http') {
+ if (isset($r['url']) && strtolower(substr($r['url'],0,4)) != 'http') {
$r['url'] = 'http://'.$r['url'];
}
- if (strtolower(substr($r['reservation_url'],0,4)) != 'http') {
+ if (isset($r['reservation_url']) && strtolower(substr($r['reservation_url'],0,4)) != 'http') {
$r['reservation_url'] = 'http://'.$r['reservation_url'];
}