Permalink
Browse files

Preventing notice in older versions of php

  • Loading branch information...
1 parent f6eac9a commit b8bbf0b4a9b9f78f39d27e90d131e9117f2ded7b @lorenzo lorenzo committed Jun 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/Database/Mysql.php
@@ -226,7 +226,7 @@ public function resultSet($results) {
while ($numFields-- > 0) {
$column = $results->getColumnMeta($index);
- if ($column['len'] === 1 && $column['native_type'] === 'TINY') {
+ if ($column['len'] === 1 && (empty($column['native_type']) || $column['native_type'] === 'TINY')) {
$type = 'boolean';
} else {
$type = $column['native_type'];

0 comments on commit b8bbf0b

Please sign in to comment.