A ladder with a first guardrail locking system having a first pair of side rails with a first set of steps and a second pair of side rails with a second set of steps. The two sets of side rails are rotatably joined together by a pair of hinges at a first pair joining sections and a second pair joining sections. The first pair joining sections and the second pair joining sections have joint points such as indentations which engage the locking key of a first guardrail so that the first guardrail may be fixedly attached to the joining sections.