diff options
Diffstat (limited to 'user_guide_src')
-rw-r--r-- | user_guide_src/source/database/results.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/database/results.rst b/user_guide_src/source/database/results.rst index 58c6b1880..689fd52ff 100644 --- a/user_guide_src/source/database/results.rst +++ b/user_guide_src/source/database/results.rst @@ -83,7 +83,7 @@ one row, it returns only the first row. The result is returned as an $row = $query->row(); - if (is_object($row)) + if (isset($row)) { echo $row->title; echo $row->name; @@ -113,7 +113,7 @@ Example:: $row = $query->row_array(); - if (is_array($row)) + if (isset($row)) { echo $row['title']; echo $row['name']; |