From 752f5692594fc0b77dffa8055bbf934e1958364f Mon Sep 17 00:00:00 2001 From: Lonnie Ezell Date: Thu, 23 Jul 2015 23:27:01 -0500 Subject: Revamping to the tune of isset --- user_guide_src/source/database/results.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user_guide_src/source/database') 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']; -- cgit v1.2.3-24-g4f1b