Commit 4c7cd9bdca7229e142eff4bb48e03c9ecf3e53d7

Fixed some PHP notices
  
116116 #TODO: un-hardcode
117117 $usernames['twitter'] = 'balleyne: ';
118118 $usernames['facebook'] = 'Blaise ';
119 $ustring = '';
119120 foreach($usernames as $username)
120121 $ustring .= "^$username|";
121122 return preg_replace('/('.$ustring.'\.$)/i','',$this->title);
122123 }
123124
124125 function merge($other){
125 if(!$this->icons){
126 if(!isset($this->icons)){
126127 $this->icons = array();
127128 $this->icons[$this->link] = $this->getIcon();
128129 $this->icons[$other->link] = $other->getIcon();
134134
135135 #TODO: find a better place for these links
136136 function getIcon(){
137 if(!$this->icons)
137 if(empty($this->icons))
138138 $this->icons[$this->link] = parent::getIcon();
139139
140140 $result = "";
147147class SharedItems extends Entry{
148148 var $action = 'shared';
149149 var $items = 'items';
150 var $canHaveMultiples = True;
150 var $canHaveMultiples = TRUE;
151 var $multiple_sources = FALSE; //default
151152
152153 function getSingleTitle(){
153154 #TODO: hardcoded. Can I use author? Is it not consistent enough?
272272 // Otherwise, this is a duplicate from multiple sources
273273 else{
274274 $this->multiple_sources = TRUE;
275 if(!$this->icons){
275 if(!isset($this->icons)) {
276276 $this->icons = array();
277277 $this->icons[$this->link] = $this->getIcon();
278278 $this->icons[$other->link] = $other->getIcon();
283283 }
284284
285285 function getIcon($hyperlink=FALSE){
286 if(!$this->icons)
286 if(empty($this->icons))
287287 $this->icons[$this->link] = parent::getIcon();
288288
289289 $result = "";
main.php
(1 / 0)
  
8989 $dbh = db_connect();
9090
9191 // Build query filters
92 $filter_query = "";
9293 if ($filters) {
9394 $fields = array('tag' => 't.name', 'feed' => 'f.id');
9495