getPidIndex callback if none specified

v1.18.x
Julian Lam 11 years ago
parent baf72249b6
commit a5423aff16

@ -534,7 +534,7 @@ var async = require('async'),
Posts.getPidIndex = function(pid, uid, callback) {
// Making uid optional
if ((!uid && !callback) || typeof uid === 'function') {
callback = uid;
callback = uid || function() {};
uid = undefined;
}

Loading…
Cancel
Save