Commits

Phil Sturgeon  committed f3284f2

->db->count_all_results() will now return an integer instead of a string.

  • Participants
  • Parent commits 9e6271c

Comments (0)

Files changed (2)

File system/database/DB_active_rec.php

 
 		if ($query->num_rows() == 0)
 		{
-			return '0';
+			return 0;
 		}
 
 		$row = $query->row();
-		return $row->numrows;
+		return (int) $row->numrows;
 	}
 
 	// --------------------------------------------------------------------

File user_guide/changelog.html

 			<li class="reactor">Added Environment Support for Hooks.</li>
 		</ul>
 	</li>
+	<li>Database
+		<ul>
+			<li class="reactor"><kbd>$this->db->count_all_results()</kbd> will now return an integer instead of a string.</li>
+		</ul>
+	</li>
 </ul>
 
 <h3>Bug fixes for 2.0.2</h3>