OSB enhancements to date
This commit is contained in:
@@ -61,7 +61,7 @@ class CORE_search {
|
||||
),$this->id));
|
||||
|
||||
# Error reporting
|
||||
if ($result === false) {
|
||||
if (! $result) {
|
||||
global $C_debug;
|
||||
|
||||
$C_debug->error(__FILE__,__METHOD__,$db->ErrorMsg());
|
||||
@@ -80,10 +80,10 @@ class CORE_search {
|
||||
# Get the details for this search
|
||||
$db = &DB();
|
||||
|
||||
$result = $db->Execute(sqlSelect($db,'search','*',sprintf('id=%s',$id)));
|
||||
$result = $db->Execute(sqlSelect('search','*',array('where'=>array('id'=>$id))));
|
||||
|
||||
# Error reporting
|
||||
if ($result === false) {
|
||||
if (! $result) {
|
||||
global $C_debug;
|
||||
|
||||
$C_debug->error(__FILE__,__METHOD__,$db->ErrorMsg());
|
||||
@@ -100,7 +100,7 @@ class CORE_search {
|
||||
$this->limit = $result->fields['limit_no'];
|
||||
|
||||
# Check if this search has expired:
|
||||
if($this->date_expire <= time()) {
|
||||
if ($this->date_expire <= time()) {
|
||||
# Refresh the search
|
||||
# $this->results = $this->refresh($id);
|
||||
# echo "<BR> this search has expired! Refreshing.... <BR>";
|
||||
@@ -137,7 +137,7 @@ class CORE_search {
|
||||
* @param int Contians the Search Id to be saved
|
||||
* @param string Contains the name of the Module this search was for
|
||||
*/
|
||||
public function save($search_id,$module,$name) {
|
||||
public function save($search_id,$module,$name) {
|
||||
# Save the search
|
||||
$db = &DB();
|
||||
|
||||
@@ -156,12 +156,12 @@ class CORE_search {
|
||||
),$this->id));
|
||||
|
||||
# Error reporting
|
||||
if ($result === false) {
|
||||
if (! $result) {
|
||||
global $C_debug;
|
||||
|
||||
$C_debug->error(__FILE__,__METHOD__,$db->ErrorMsg());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the recent search menu and JavaScript
|
||||
|
Reference in New Issue
Block a user