diff options
author | Lonnie Ezell <lonnieje@gmail.com> | 2015-07-24 06:27:01 +0200 |
---|---|---|
committer | Lonnie Ezell <lonnieje@gmail.com> | 2015-07-24 06:27:01 +0200 |
commit | 752f5692594fc0b77dffa8055bbf934e1958364f (patch) | |
tree | 6eed430a06d58705e4852e90ad67bf32dbc0d71e /user_guide_src/source/database | |
parent | f6259657756cf13c65f5ac30b36ad2d0dbdc89fc (diff) |
Revamping to the tune of isset
Diffstat (limited to 'user_guide_src/source/database')
-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']; |