Default to Low bandwidth in API if not set

This commit is contained in:
Kyle Johnson 2014-12-25 23:47:44 -05:00
parent a71e291331
commit a7d32a2cd7
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class EventsController extends AppController {
// Get the config options required for reScale and getImageSrc
// The $bw, $thumbs and unset() code is a workaround / temporary
// until I have a better way of handing per-bandwidth config options
$bw = strtoupper(substr($_COOKIE['zmBandwidth'], 0, 1));
$bw = (isset($_COOKIE['zmBandwidth']) ? strtoupper(substr($_COOKIE['zmBandwidth'], 0, 1)) : 'L');
$thumbs = "ZM_WEB_${bw}_SCALE_THUMBS";
$config = $this->Config->find('list', array(