Original: When neither consul was within the city, their civic duties were assumed by the praetor urbanus.
Simplified: When neither consul was within the city, their civic duties were assumed by the praetor urbanus (city prefect).