HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/www/sites/all/modules/views/modules/node/views_handler_argument_node_uid_revision.inc
<?php

/**
 * @file
 * Defintion of views_handler_argument_node_uid_revision.
 */

/**
 * Filter handler to accept a user id to check for nodes that
 * user posted or created a revision on.
 */
class views_handler_argument_node_uid_revision extends views_handler_argument_comment_user_uid {
  function query($group_by = FALSE) {
    $this->ensure_my_table();
    $placeholder = $this->placeholder();
    $this->query->add_where_expression(0, "$this->table_alias.uid = $placeholder OR ((SELECT COUNT(*) FROM {node_revision} nr WHERE nr.uid = $placeholder AND nr.nid = $this->table_alias.nid) > 0)", array($placeholder => $this->argument));
  }
}