Changeset 833:e52d87b4cbd1 for inc/core/class.dc.blog.php
- Timestamp:
- 05/24/12 09:04:39 (13 years ago)
- Branch:
- default
- Children:
- 835:dbc60fa508df, 836:3a54ff018a83
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.blog.php
r831 r833 672 672 $params = new ArrayObject($params); 673 673 $this->core->callBehavior('coreBlogBeforeGetPosts',$params); 674 $params = (array)$params;675 674 676 675 if ($count_only) … … 1393 1392 1394 1393 $now = dt::toUTC(time()); 1395 $to_change = array();1396 1394 $to_change = new ArrayObject(); 1395 1397 1396 if ($rs->isEmpty()) { 1398 1397 return; … … 1412 1411 } 1413 1412 } 1414 1415 if (!empty($to_change)) 1413 if (count($to_change)) 1416 1414 { 1417 1415 # --BEHAVIOR-- coreBeforeScheduledEntriesPublish 1418 $to_change = new ArrayObject($to_change);1419 1416 $this->core->callBehavior('coreBeforeScheduledEntriesPublish',$this,$to_change); 1420 $to_change = (array)$to_change;1421 1417 1422 1418 $strReq = … … 1424 1420 'post_status = 1 '. 1425 1421 "WHERE blog_id = '".$this->con->escape($this->id)."' ". 1426 'AND post_id '.$this->con->in($to_change).' '; 1427 1422 'AND post_id '.$this->con->in((array)$to_change).' '; 1428 1423 $this->con->execute($strReq); 1429 1424 $this->triggerBlog(); 1430 1425 1431 1426 # --BEHAVIOR-- coreAfterScheduledEntriesPublish 1432 $to_change = new ArrayObject($to_change);1433 1427 $this->core->callBehavior('coreAfterScheduledEntriesPublish',$this,$to_change); 1434 1428 }
Note: See TracChangeset
for help on using the changeset viewer.