Browse Source

Double-whammy sprintf use - one with only one parameter

JD-Robbs 11 years ago
parent
commit
2d824ff6d4
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/Network/Session.php

+ 3 - 4
src/Network/Session.php

@@ -282,10 +282,9 @@ class Session {
 
 		foreach ($options as $setting => $value) {
 			if (ini_set($setting, $value) === false) {
-				throw new \RuntimeException(sprintf(
-					sprintf('Unable to configure the session, setting %s failed.'),
-					$setting
-				));
+				throw new \RuntimeException(
+					sprintf('Unable to configure the session, setting %s failed.', $setting)
+				);
 			}
 		}
 	}