Skip to content
Snippets Groups Projects
Commit c6b60516 authored by Demian Katz's avatar Demian Katz
Browse files

Avoid missing reference types.

parent c89acb5a
No related merge requests found
<? <?
// A driver-specific template may pass in format overrides; check for these before going to the driver itself: // A driver-specific template may pass in format overrides; check for these before going to the driver itself:
$formats = isset($this->overrideFormats) ? $this->overrideFormats : $this->driver->tryMethod('getFormats'); $formats = isset($this->overrideFormats) ? $this->overrideFormats : $this->driver->tryMethod('getFormats');
if (is_array($formats)) { if (is_array($formats) && !empty($formats)) {
foreach ($formats as $format) { foreach ($formats as $format) {
echo "RT $format\n"; echo "RT $format\n";
} }
} else {
echo "RT Generic\n";
} }
$title = rtrim($this->driver->getTitle(), " /"); $title = rtrim($this->driver->getTitle(), " /");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment