comparison program/lib/Roundcube/rcube_contacts.php @ 25:bea5a38be938

More cleaning up php8 Warnings/deprecations
author Charlie Root
date Sat, 18 Oct 2025 12:24:31 -0400
parents aff04b06b685
children
comparison
equal deleted inserted replaced
24:e53add5ddac5 25:bea5a38be938
201 * 201 *
202 * @return array Indexed list of contact records, each a hash array 202 * @return array Indexed list of contact records, each a hash array
203 */ 203 */
204 function list_records($cols = null, $subset = 0, $nocount = false) 204 function list_records($cols = null, $subset = 0, $nocount = false)
205 { 205 {
206 $join = "";
206 if ($nocount || $this->list_page <= 1) { 207 if ($nocount || $this->list_page <= 1) {
207 // create dummy result, we don't need a count now 208 // create dummy result, we don't need a count now
208 $this->result = new rcube_result_set(); 209 $this->result = new rcube_result_set();
209 } else { 210 } else {
210 // count all records 211 // count all records
479 * 480 *
480 * @return int Contacts count 481 * @return int Contacts count
481 */ 482 */
482 private function _count() 483 private function _count()
483 { 484 {
485 $join = "";
484 if ($this->group_id) 486 if ($this->group_id)
485 $join = " LEFT JOIN " . $this->db->table_name($this->db_groupmembers, true) . " AS m". 487 $join = " LEFT JOIN " . $this->db->table_name($this->db_groupmembers, true) . " AS m".
486 " ON (m.`contact_id` = c.`".$this->primary_key."`)"; 488 " ON (m.`contact_id` = c.`".$this->primary_key."`)";
487 489
488 // count contacts for this user 490 // count contacts for this user