Skip to content

Commit

Permalink
Resolve PHP warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Oct 3, 2019
1 parent 3f0fd99 commit 3877b85
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ function dataObjectEffect() {
}

/**
* Identifies a submission id in the request.
* Identifies a data object id in the request.
* @param $lookOnlyByParameterName boolean True iff page router
* requests should only look for named parameters.
* @return integer|false returns false if no valid submission id could be found.
*/
function getDataObjectId($lookOnlyByParameterName = false) {
Expand Down
2 changes: 1 addition & 1 deletion classes/services/PKPUserService.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getMany($args = array()) {
public function getMax($args = array()) {
$userListQB = $this->_getQueryBuilder($args);
$countQO = $userListQB->countOnly()->get();
$countRange = new DBResultRange($args['count'], 1);
$countRange = new DBResultRange($args['count']??null, 1);
$userDao = DAORegistry::getDAO('UserDAO');
$countResult = $userDao->retrieveRange($countQO->toSql(), $countQO->getBindings(), $countRange);
$countQueryResults = new DAOResultFactory($countResult, $userDao, '_returnUserFromRowWithData');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ function getWeeksDue() {
* (Includes default '' => "Choose One" string.)
* @return array recommendation => localeString
*/
function getReviewerRecommendationOptions() {
static function getReviewerRecommendationOptions() {

static $reviewerRecommendationOptions = array(
'' => 'common.chooseOne',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function execute() {

$userDao = DAORegistry::getDAO('UserDAO');
$reviewer = $userDao->getById($reviewAssignment->getReviewerId());
$request = Application::getRequest();
$request = Application::get()->getRequest();
SubmissionLog::logEvent(
$request,
$submission,
Expand Down

0 comments on commit 3877b85

Please sign in to comment.