1) { return $this->format_error("Multiple rows provided where only one is allowed."); } if (!empty($data)) { $data = reset($data); } if (is_array($data)) { return $this->format_error("Array provided where a string is required."); } } return (string)$data; } }