joomla/joomla-cms — pull request #1273 by mahagr (2013-06-13 07:43:53+00:00)
Title: JTable::load() should always return false if row wasn't loaded

Current version of JTable::load(null) returns true if table key is either null or 0. This contradicts the method documentation which says that false is returned if the row wasn't found (from the database).

// Initialize table object and run:
$table->id = 0;
$success = $table->load();
var_dump($success); // true
$table->id = 99999999;
$success = $table->load();
var_dump($success); // false