Skip to content
Snippets Groups Projects
Commit 178cb187 authored by Tim Steiner's avatar Tim Steiner
Browse files

"Fix for getNext/PrevAlphabetically when a fetchRow() returns null."

parent cb099ab2
No related branches found
Tags
No related merge requests found
......@@ -20,7 +20,7 @@ class CourseCode extends Nmc_Db_Table_Row
$where = implode(' AND ', $where);
$row = $this->_table->fetchRow($where, $order);
if($row->getPrimaryKey()) {
if($row instanceof Nmc_Db_Table_Row && $row->getPrimaryKey()) {
return $row;
}
......@@ -30,7 +30,7 @@ class CourseCode extends Nmc_Db_Table_Row
$where = implode(' AND ', $where);
$row = $this->_table->fetchRow($where, $order);
if($row->getPrimaryKey()) {
if($row instanceof Nmc_Db_Table_Row && $row->getPrimaryKey()) {
return $row;
}
......@@ -39,7 +39,7 @@ class CourseCode extends Nmc_Db_Table_Row
$where = implode(' AND ', $where);
$row = $this->_table->fetchRow($where, $order);
if($row->getPrimaryKey()) {
if($row instanceof Nmc_Db_Table_Row && $row->getPrimaryKey()) {
return $row;
}
......@@ -75,7 +75,7 @@ class CourseCode extends Nmc_Db_Table_Row
$where = implode(' AND ', $where);
$row = $this->_table->fetchRow($where, $order);
if($row->getPrimaryKey()) {
if($row instanceof Nmc_Db_Table_Row && $row->getPrimaryKey()) {
return $row;
}
......@@ -84,7 +84,7 @@ class CourseCode extends Nmc_Db_Table_Row
$where = implode(' AND ', $where);
$row = $this->_table->fetchRow($where, $order);
if($row->getPrimaryKey()) {
if($row instanceof Nmc_Db_Table_Row && $row->getPrimaryKey()) {
return $row;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment